Fix block connection ordering in a number of functional tests
authorMatt Corallo <git@bluematt.me>
Sat, 13 Mar 2021 02:16:15 +0000 (21:16 -0500)
committerMatt Corallo <git@bluematt.me>
Sat, 20 Mar 2021 03:31:26 +0000 (23:31 -0400)
commit26a3eda933112fa6f5362a3d11d3d14664680113
tree3abe26619666088f59c822023f10462611de95d5
parentf3188353f523085a6778342b1a5b6ed0f0fd0e6a
Fix block connection ordering in a number of functional tests

Many functional tests rely on being able to call block_connected
arbitrarily, jumping back in time to confirm a transaction at a
specific height. Instead, this takes us one step towards having a
well-formed blockchain in the functional tests.

We also take this opportunity to reduce the number of blocks
connected during tests, requiring a number of constant tweaks in
various functional tests.

Co-authored-by: Valentine Wallace <vwallace@protonmail.com>
Co-authored-by: Matt Corallo <git@bluematt.me>
lightning-persister/src/lib.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/ln/functional_tests.rs
lightning/src/ln/reorg_tests.rs