From 8e4c4ae0886c639cfc8cb1a8f2bb2e6f0fdd8763 Mon Sep 17 00:00:00 2001 From: landoyjx Date: Fri, 24 Jul 2020 09:44:12 +0800 Subject: [PATCH] fix updateset deps callstate bug --- docker-compose.yml | 8 ++++---- src/call/ledger/impl/View.cpp | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0aedfbc..e1646f0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,7 @@ services: - "5020:5020" volumes: - ./:/root - command: /bin/bash -c 'cd /root/ && ./build/calld --start --conf ./cfg/testnet/calld.node0.cfg -q' + command: /bin/bash -c 'cd /root/ && ./build/call --start --conf ./cfg/testnet/calld.node0.cfg -q' networks: localnet: ipv4_address: 192.168.20.2 @@ -21,7 +21,7 @@ services: - ./:/root depends_on: - node0 - command: /bin/bash -c 'cd /root/ && ./build/calld --net --conf ./cfg/testnet/calld.node1.cfg -q' + command: /bin/bash -c 'cd /root/ && ./build/call --net --conf ./cfg/testnet/calld.node1.cfg -q' networks: localnet: ipv4_address: 192.168.20.3 @@ -33,7 +33,7 @@ services: - ./:/root depends_on: - node0 - command: /bin/bash -c 'cd /root/ && ./build/calld --net --conf ./cfg/testnet/calld.node2.cfg -q' + command: /bin/bash -c 'cd /root/ && ./build/call --net --conf ./cfg/testnet/calld.node2.cfg -q' networks: localnet: ipv4_address: 192.168.20.4 @@ -45,4 +45,4 @@ networks: driver: default config: - - subnet: 192.168.20.0/16 \ No newline at end of file + subnet: 192.168.20.0/16 diff --git a/src/call/ledger/impl/View.cpp b/src/call/ledger/impl/View.cpp index 00219bd..edc67d8 100644 --- a/src/call/ledger/impl/View.cpp +++ b/src/call/ledger/impl/View.cpp @@ -1891,6 +1891,9 @@ TER issueIOU(ApplyView &view, } if (terResult == tesSUCCESS) { + // peek again + if (!state) state = view.peek(keylet::line(index)); + terResult = updateIssueSet(view, state, bSenderHigh ? account : issue.account, bSenderHigh ? issue.account : account, amount, 0, j); }