-
Notifications
You must be signed in to change notification settings - Fork 80
Problem (Fix #1515): unbond tx don't subtract fee from bonded #1516
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1516 +/- ##
==========================================
+ Coverage 65.75% 65.77% +0.02%
==========================================
Files 161 161
Lines 21789 21808 +19
==========================================
+ Hits 14328 14345 +17
- Misses 7461 7463 +2
|
bb4193d
to
f4300b6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bors r+
1511: Problem (Fix #1313): light client doesn't verify the fetched staking state r=tomtau a=yihuang Solution: - Add staking_root in sync state - Remove the "account" path in favor of the new "staking" path - Client staking state command add wallet name parameter, and verify staking state and proof against the trusted staking_root in sync state - Need to sync wallet before fetching the new staking state now. (you can still get any staking state without verification by request abci_query API directly) 1516: Problem (Fix #1515): unbond tx don't subtract fee from bonded r=tomtau a=yihuang Solution: - Fix the bug and add unit test Co-authored-by: yihuang <huang@crypto.com>
Build failed (retrying...): |
bors retry |
Already running a review |
bors r+ |
Build failed: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
needs extra sync / wait in multi-node join test?
Traceback (most recent call last):
138 File "./multinode/join_test.py", line 89, in <module>
139 txid = rpc.staking.unbond(addr, int(state['bonded']), enckey=enckey, name='target')
140 File "/drone/src/integration-tests/bot/chainrpc.py", line 208, in unbond
141 return self.call('staking_unbondStake', [name, enckey or get_enckey()], fix_address(address), str(amount))
142 File "/drone/src/integration-tests/bot/chainrpc.py", line 68, in call
143 rsp = request(self.client_rpc_url, method, *args, **kwargs)
144 File "/drone/src/drone/venv/lib/python3.8/site-packages/jsonrpcclient/__init__.py", line 8, in request
145 return HTTPClient(endpoint).request(*args, **kwargs)
146 File "/drone/src/drone/venv/lib/python3.8/site-packages/apply_defaults/decorators.py", line 13, in wrapper
147 return function(self, *args, **kwargs)
148 File "/drone/src/drone/venv/lib/python3.8/site-packages/jsonrpcclient/client.py", line 229, in request
149 return self.send(
150 File "/drone/src/drone/venv/lib/python3.8/site-packages/apply_defaults/decorators.py", line 13, in wrapper
151 return function(self, *args, **kwargs)
152 File "/drone/src/drone/venv/lib/python3.8/site-packages/jsonrpcclient/client.py", line 177, in send
153 raise ReceivedErrorResponseError(response.data)
154 jsonrpcclient.exceptions.ReceivedErrorResponseError: Invalid input: Staking account does not have enough coins to unbond (synchronizing your wallet may help)
or needs to call
instead of
? (or something like |
Solution: - Fix the bug and add unit test
Yes, fixed now, |
bors r+ |
Build succeeded: |
1516: Problem (Fix crypto-com#1515): unbond tx don't subtract fee from bonded r=tomtau a=yihuang Solution: - Fix the bug and add unit test Co-authored-by: yihuang <huang@crypto.com>
Solution: