Post
Topic
Board Development & Technical Discussion
Re: Correct steps for a delayed transaction?
by
voileipa
on 02/11/2014, 17:43:28 UTC
Hhhm.. the nLockTime is not working.

I created a transaction with locktime = 630000 but it is still included in the blockchain

https://blockchain.info/tx/18b598bd76110151d6bea797d3c10bcfdc44454303da6d74fbd3f15c5e851d0a



If all TxIn inputs have final (0xffffffff) sequence numbers then locktime is ignored.

Thanks for the response. I set the sequence number to 0 and after that my bitcoind didn't broadcast the transaction until the given block height was reached:

Code:
>./bitcoin-cli sendrawtransaction $SIGNED_RAW_TX                 
error: {"code":-26,"message":"64: non-final"}

After the block height was reached I finally got the transaction in the block chain as expected:
https://blockchain.info/tx/d61839fb690395ba638ba804c5af4bf0111ff269ca1e0b251cff737ca6189557


I hope all nodes will relay (now and in future) transactions with custom nLockTimes and sequences!