nervosnetwork / fiber

16 stars 8 forks source link

Fix get sent/received tlc value #94

Closed contrun closed 2 months ago

contrun commented 3 months ago

Something is wrong with current calculation of the amount of sent/received money. The error is discovered by @chenyukang while developing https://github.com/nervosnetwork/cfn-node/pull/69 . This PR is currently untested. There are still a lot of things I need to improve (first, the TODO listed in the code, second, make a test case to ensure the balance is calculated correctly). This is meant to be a hotfix.