Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

client/asset/eth: fix client balance calcs #1321

Merged
merged 4 commits into from Dec 6, 2021

Conversation

buck54321
Copy link
Member

The client apparently doesn't maintain a pending state, so the
way I had calculated balance client-side didn't work. Go back
to @martonp's initial implementation which parses redeem
and refund data from transactions.

Remove the Pending field from Balance. It wasn't used.

The client apparently doesn't maintain a pending state, so the
way I had calculated balance client-side didn't work. Go
going back to martonp's initial implementation which parses redeem
and refund data from transactions.

Remove the Pending field from Balance. It wasn't used.
client/asset/eth/nodeclient.go Show resolved Hide resolved
client/asset/eth/nodeclient.go Outdated Show resolved Hide resolved
@chappjc
Copy link
Member

chappjc commented Dec 1, 2021

Mostly unrelated to this PR, but there are a lot of unused Context args to ethFetcher methods, including pendingTransactions. Is there a conceivable use for these with another ethFetcher impl?
EDIT: oh, actually pendingTransactions is not an ethFetcher method at all, so can remove that arg I think.
Unused in: peers, listWallets, nodeInfo, addPeer, and pendingTransactions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants