Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
24da458411
  1. 2
      iguana/swaps/iguana_BTCswap.c

2
iguana/swaps/iguana_BTCswap.c

@ -876,7 +876,7 @@ struct instantdex_stateinfo *BTC_initFSM(int32_t *n)
// events instantdex_addevent(s,*n,<Current State>,<event>,<message to send>,<Next State>) // events instantdex_addevent(s,*n,<Current State>,<event>,<message to send>,<Next State>)
*n = 2; *n = 2;
s = instantdex_statecreate(s,n,"BTC_cleanup",BTC_cleanupfunc,0,0,0,-1); // from states without any commits s = instantdex_statecreate(s,n,"BTC_cleanup",BTC_cleanupfunc,0,0,0,-1); // from states without any commits
//memset(s,0,sizeof(*s) * 2); memset(s,0,sizeof(*s) * 2);
// terminal [BLOCKING] states for the corresponding transaction // terminal [BLOCKING] states for the corresponding transaction
// if all goes well both alice and bob get to claim the other's payments // if all goes well both alice and bob get to claim the other's payments
s = instantdex_statecreate(s,n,"ALICE_claimedbtc",ALICE_claimbtcfunc,0,0,0,0); s = instantdex_statecreate(s,n,"ALICE_claimedbtc",ALICE_claimbtcfunc,0,0,0,0);

Loading…
Cancel
Save