Fix block connection ordering in a number of functional tests
authorMatt Corallo <git@bluematt.me>
Wed, 17 Mar 2021 17:11:48 +0000 (13:11 -0400)
committerMatt Corallo <git@bluematt.me>
Sat, 20 Mar 2021 03:32:38 +0000 (23:32 -0400)
commite985334fd2a297a6b3a3e4637a4277147c4b9d7d
treea13c174b14effa75a3637bbddaf6eb76150fb094
parentb2c5e3aedb00c9431ad9514a8200e773eec0ebf3
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