Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
zack-bitcoin committed Feb 7, 2017
1 parent e98fd1a commit 9d63ebc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 5 additions & 5 deletions channel_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ sleep 1
curl -i -d '["sync", [127,0,0,1], 3020]' http://localhost:3011
sleep 1
curl -i -d '["channel_spend", [127,0,0,1], 3020, 27]' http://localhost:3011
sleep 1
curl -i -d '["sync", [127,0,0,1], 3020]' http://localhost:3011
sleep 1
#sleep 1
#curl -i -d '["sync", [127,0,0,1], 3020]' http://localhost:3011
#sleep 1

curl -i -d '["dice", 1000, [127,0,0,1], 3020]' http://localhost:3011 # "dice"
sleep 1
#curl -i -d '["dice", 1000, [127,0,0,1], 3020]' http://localhost:3011 # "dice"
#sleep 1
#curl -i -d '["mine_block", 1, 1000000]' http://localhost:3021
#sleep 1

Expand Down
3 changes: 1 addition & 2 deletions src/channels/channel_feeder.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@
cid}). %live is a flag. As soon as it is possible that the channel could be closed, we switch the flag to false. We keep trying to close the channel, until it is closed. We don't update the channel state at all.
me(X) -> X#cd.me.
cid(X) when is_integer(X) ->
{ok, C} = channel_manager:read(X),
cid(C);
cid(channel_manager:read(X));
cid(X) when is_record(X, cd) -> X#cd.cid;
cid(error) -> undefined;
cid(X) -> cid(other(X)).
Expand Down

0 comments on commit 9d63ebc

Please sign in to comment.