electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit f397b315ac437d47e1583d3320c5c5058ba820f7
parent 1f60d5d8eee3a908ae22f58c29391ef0bab87c64
Author: ThomasV <thomasv@electrum.org>
Date:   Fri,  5 Mar 2021 13:18:44 +0100

remove trampoline and forwarding regtests, as they are covered by unittests

Diffstat:
Melectrum/tests/regtest.py | 6------
Melectrum/tests/regtest/regtest.sh | 50--------------------------------------------------
2 files changed, 0 insertions(+), 56 deletions(-)

diff --git a/electrum/tests/regtest.py b/electrum/tests/regtest.py @@ -55,11 +55,5 @@ class TestLightningAB(TestLightning): class TestLightningABC(TestLightning): agents = ['alice', 'bob', 'carol'] - def test_forwarding(self): - self.run_shell(['forwarding']) - - def test_trampoline(self): - self.run_shell(['trampoline']) - def test_watchtower(self): self.run_shell(['watchtower']) diff --git a/electrum/tests/regtest/regtest.sh b/electrum/tests/regtest/regtest.sh @@ -103,56 +103,6 @@ if [[ $1 == "stop" ]]; then $agent stop || true fi -if [[ $1 == "forwarding" ]]; then - $bob setconfig lightning_forward_payments true - bob_node=$($bob nodeid) - channel_id1=$($alice open_channel $bob_node 0.002 --push_amount 0.001) - channel_id2=$($carol open_channel $bob_node 0.002 --push_amount 0.001) - echo "mining 3 blocks" - new_blocks 3 - sleep 10 # time for channelDB - request=$($carol add_lightning_request 0.0001 -m "blah" | jq -r ".invoice") - $carol setconfig test_fail_malformed_htlc true - $alice lnpay $request - request2=$($carol add_lightning_request 0.0001 -m "blah" | jq -r ".invoice") - $carol setconfig test_fail_malformed_htlc false - $alice lnpay $request2 - carol_balance=$($carol list_channels | jq -r '.[0].local_balance') - echo "carol balance: $carol_balance" - if [[ $carol_balance != 110000 ]]; then - exit 1 - fi - chan1=$($alice list_channels | jq -r ".[0].channel_point") - chan2=$($carol list_channels | jq -r ".[0].channel_point") - $alice close_channel $chan1 - $carol close_channel $chan2 -fi - -if [[ $1 == "trampoline" ]]; then - $alice stop - $alice setconfig -o use_gossip False - $alice daemon -d - $alice load_wallet - sleep 1 - $bob setconfig lightning_forward_payments true - bob_node=$($bob nodeid) - channel_id1=$($alice open_channel $bob_node 0.002 --push_amount 0.001) - channel_id2=$($carol open_channel $bob_node 0.002 --push_amount 0.001) - echo "mining 3 blocks" - new_blocks 3 - sleep 10 # time for channelDB - request=$($carol add_lightning_request 0.0001 -m "blah" | jq -r ".invoice") - $alice lnpay --attempts=2 $request - carol_balance=$($carol list_channels | jq -r '.[0].local_balance') - echo "carol balance: $carol_balance" - if [[ $carol_balance != 110000 ]]; then - exit 1 - fi - chan1=$($alice list_channels | jq -r ".[0].channel_point") - chan2=$($carol list_channels | jq -r ".[0].channel_point") - $alice close_channel $chan1 - $carol close_channel $chan2 -fi # alice sends two payments, then broadcast ctx after first payment. # thus, bob needs to redeem both to_local and to_remote