core-lightning/contrib
Rusty Russell f51ce7be85 pytest: follow RBF txids properly, but ignoring identical "RBF" txs.
`mine_txid_or_rbf` uses is_in_log, which grabs the first line.  Thus it doesn't track when a txid gets "RBF"ed by itself, such as:

```
DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: RBF onchain txid 5df8474399e43c58cc45efb6acf1ae08fe678bea9a27d131628394a009cda361 (fee 122sat) with txid 5df8474399e43c58cc45efb6acf1ae08fe678bea9a27d131628394a009cda361 (fee 122sat)
...
INFO    022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: RBF onchain txid 5df8474399e43c58cc45efb6acf1ae08fe678bea9a27d131628394a009cda361 (fee 122sat) with txid 044a564a2b6f8c7c212246e4973a303d24ce0dcd31c470a9ea272f314cf6a4ce (fee 3630sat)
...
DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: RBF onchain txid 044a564a2b6f8c7c212246e4973a303d24ce0dcd31c470a9ea272f314cf6a4ce (fee 3630sat) with txid 044a564a2b6f8c7c212246e4973a303d24ce0dcd31c470a9ea272f314cf6a4ce (fee 3630sat)
...
DEBUG   022d223620a359a47ff7f7ac447c85c46c923da53389221a0054c11c1e3ca31d59-chan#1: RBF onchain txid 044a564a2b6f8c7c212246e4973a303d24ce0dcd31c470a9ea272f314cf6a4ce (fee 3630sat) with txid 044a564a2b6f8c7c212246e4973a303d24ce0dcd31c470a9ea272f314cf6a4ce (fee 3630sat)
```

The simplest fix is to only use INFO lines, which are printed when we actually increase fee.

```
    def test_onchaind_replay(node_factory, bitcoind):
...
        # l1 should still notice that the funding was spent and that we should react to it
        _, txid, blocks = l1.wait_for_onchaind_tx('OUR_DELAYED_RETURN_TO_WALLET',
                                                  'OUR_UNILATERAL/DELAYED_OUTPUT_TO_US')
        assert blocks == 200
        bitcoind.generate_block(200)
        # Could be RBF!
>       l1.mine_txid_or_rbf(txid)

tests/test_closing.py:1860: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
contrib/pyln-testing/pyln/testing/utils.py:1292: in mine_txid_or_rbf
    wait_for(lambda: rbf_or_txid_broadcast(txids))
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

success = <function LightningNode.mine_txid_or_rbf.<locals>.<lambda> at 0x7f5d55f770d0>
timeout = 180

    def wait_for(success, timeout=TIMEOUT):
        start_time = time.time()
        interval = 0.25
        while not success():
            time_left = start_time + timeout - time.time()
            if time_left <= 0:
>               raise ValueError("Timeout while waiting for {}".format(success))
E               ValueError: Timeout while waiting for <function LightningNode.mine_txid_or_rbf.<locals>.<lambda> at 0x7f5d55f770d0>
```

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2023-07-28 09:44:58 +09:30
..
docker plugins/clnrest: Update clnrest dependencies in scripts and Dockerfiles 2023-07-25 19:20:16 +09:30
init Remove --daemon from lightningd.service 2023-07-09 13:02:10 +09:30
keys misc: Update cdecker's gpg key 2022-12-06 16:37:19 +01:00
msggen added listhtlcs model 2023-07-24 09:07:24 +09:30
plugins tests: notification response fixes 2023-07-10 14:51:11 +09:30
pylightning tests: notification response fixes 2023-07-10 14:51:11 +09:30
pyln-client listinvoices: add limit param. 2023-07-23 13:48:37 +09:30
pyln-grpc-proto msggen: Add two missing fields to the listpays schema 2023-07-27 12:40:28 +09:30
pyln-proto lightningd: updating python v3.7 to v3.8 2023-07-20 11:44:46 +09:30
pyln-spec lightningd: updating python v3.7 to v3.8 2023-07-20 11:44:46 +09:30
pyln-testing pytest: follow RBF txids properly, but ignoring identical "RBF" txs. 2023-07-28 09:44:58 +09:30
reprobuild plugins/clnrest: Update clnrest dependencies in scripts and Dockerfiles 2023-07-25 19:20:16 +09:30
sanitizer_suppressions common/autodata: use instead of ccan/autodata 2021-09-21 18:04:43 +02:00
bootstrap-node.sh Replace head -n with sort -R for better random peer selection 2023-01-04 13:29:46 +10:30
clang-coverage-report.sh contrib: script to generate Clang coverage report 2023-06-15 10:47:56 +09:30
config-example Added sample config file 2023-06-21 14:57:34 +09:30
giantnode.py contrib/giantnode.py: populate three regtest nodes with many invoices/forwards/payments. 2022-09-18 16:21:54 +02:00
lightning-cli.bash-completion Fix bash completion. 2020-05-15 15:25:33 +02:00
short_channel_id-to-txid.sh Add compability to current formalism to short_channel_id-to-txid.sh 2019-10-04 00:38:52 +00:00
startup_regtest.sh Fix Typo in startup_regtest.sh 2023-04-11 13:39:51 +09:30