Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: CIYAM on November 11, 2016, 01:03:54 PM



Title: Troubles with CLTV transaction being non-final...
Post by: CIYAM on November 11, 2016, 01:03:54 PM
For anyone playing around with CLTV transaction using "regtest" you should note that you will likely need to generate multiple blocks between sending funds to the the P2SH script address with the future nLockTime and when you want issue the tx to spend those funds due to the handling of the nBlockTime being based upon an average of the last X blocks.

https://github.com/bitcoin/bips/blob/master/bip-0113.mediawiki

Frustrated me for a day so if you're getting the non-final errors when you think you shouldn't just try a "generate 10" and repeat. :)


Title: Re: Troubles with CLTV transaction being non-final...
Post by: CIYAM on November 11, 2016, 02:28:03 PM
Will lock this topic now.