Hello everyone,
I am currently redoing LockMyCoins (because of some bugs) and I could use some help. I created a nLockTime transaction with a correct sequence number and a valid timelock value. It should have been locked/delayed till 03/11/14 @ 12:00:00am UTC, but well, that didn't happen.
The raw tx:
0100000001cc923d65a09775c14f1bcdac924eb6d1793a3b17f085a3bb4f83fdcfbd016302010000008b48304502210096db026713c14c1302c7b291649f2bff4eb684dbf4ba8772eb8d54f1da9860a402203eeb7242c3c3bd826803c2fda8d7c979c3afe78fe29128420edff303b7380acc0141042da7f0a57b1fff48209abf56734ac1cd410975896951d8d73a716888c94f068493d1ccc7c1aa413ef9880085f83da1b038a20b410b6b3b975aa2ec72bef35989ffffffff0138082a00000000001976a914f572a7504275ee9c6dc9bc331454493b092a95d788ac00521e53
The transaction in a readable fashion:
Array
(
[txid] => d1cab7df73e3389523068b6eed4d59546522150b76eb3a6e22cdaaa858c220e1
[version] => 1
[locktime] => 1394496000
[vin] => Array
(
[0] => Array
(
[txid] => 026301bdcffd834fbba385f0173b3a79d1b64e92accd1b4fc17597a0653d92cc
[vout] => 1
[scriptSig] => Array
(
[asm] => 304502210096db026713c14c1302c7b291649f2bff4eb684dbf4ba8772eb8d54f1da9860a402203eeb7242c3c3bd826803c2fda8d7c979c3afe78fe29128420edff303b7380acc01 042da7f0a57b1fff48209abf56734ac1cd410975896951d8d73a716888c94f068493d1ccc7c1aa413ef9880085f83da1b038a20b410b6b3b975aa2ec72bef35989
[hex] => 48304502210096db026713c14c1302c7b291649f2bff4eb684dbf4ba8772eb8d54f1da9860a402203eeb7242c3c3bd826803c2fda8d7c979c3afe78fe29128420edff303b7380acc0141042da7f0a57b1fff48209abf56734ac1cd410975896951d8d73a716888c94f068493d1ccc7c1aa413ef9880085f83da1b038a20b410b6b3b975aa2ec72bef35989
)
[sequence] => 4294967295
)
)
[vout] => Array
(
[0] => Array
(
[value] => 0.02754616
[n] => 0
[scriptPubKey] => Array
(
[asm] => OP_DUP OP_HASH160 f572a7504275ee9c6dc9bc331454493b092a95d7 OP_EQUALVERIFY OP_CHECKSIG
[hex] => 76a914f572a7504275ee9c6dc9bc331454493b092a95d788ac
[reqSigs] => 1
[type] => pubkeyhash
[addresses] => Array
(
[0] => 1PNouGYhffbBMeSSXWrCR43g3FKdYD2bpo
)
)
)
)
)
Does anybody here know what went wrong or does the Bitcoin Network shit on nLockTime transactions?
Any help is highly appreciated.
IIRC if sequences is max value then nlocktime is "ignored".
The sequence isn't the max value. Double checked that with other transactions (which didn't have nLockTime) that I generated at (give or take) the same moment.
EDIT: Just noticed that all these transactions have the same sequence number (4294967295). I generated them with Brainwallet, could that be the problem which causes transactions to confirm instantly instead of delaying them?
EDIT2: Apparently this is the reason why they went through. God freaking dammit. What if I simply deducted a 1 from the sequence number. Would that fix this problem or does the sequence number have to be a certain kind of number?
EDIT3: It seems that the sequence number is used for replacing a nLockTime transaction with a new one. I could set this number to 0 or 2132, because replacing a transaction isn't currently disabled, correct?
I am running low of caffine but I am pretty sure 4294967295 = 2^32 - 1 which is the max uint32 value.
On edit: Any value less than max sequence is valid for nlocktime I am just not sure if nodes will relay a tx with sequence value less than max (aka non-standard).
You are right and thanks a lot for confirming my theory.

Now I can finally continue with this project.