mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +01:00
With the following patch applied, we could clearly see onchaind try to broadcast the timeout tx one block too early: sendrawtx exit 26, gave error code: -26?error message:?non-final (code 64)? This is because of an out-by-one error in calculating the relative depth required, since the out->tx_blockheight is already 1 before the current block. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>