mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
protocol: switch to single-funder anchor model.
Most complex change was gather_updates(), which handles all the "what is the current state of the channel" logic for our dumb test utils. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -24,11 +24,10 @@ done
|
||||
scripts/generate-block.sh init
|
||||
|
||||
A1=`scripts/get-new-address.sh`
|
||||
A2=`scripts/get-new-address.sh`
|
||||
TX=`$CLI sendmany "" "{ \"$A1\":10, \"$A2\":10 }"`
|
||||
TX=`$CLI sendmany "" "{ \"$A1\":10 }"`
|
||||
scripts/generate-block.sh
|
||||
|
||||
# Find the inputs numbers corresponding to those 10 btc outs
|
||||
echo "Arguments to test.sh:"
|
||||
# Find the inputs number corresponding to that 10 btc out
|
||||
echo "Argument to test.sh:"
|
||||
for i in $(seq 1 $($CLI listunspent | grep -c txid) ); do scripts/getinput.sh $i | grep -q "$TX.*/1000000000/" && echo -n "$i "; done
|
||||
echo
|
||||
|
||||
Reference in New Issue
Block a user