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

shed: simple wallet balancer util #7414

Merged
merged 1 commit into from
Nov 22, 2021
Merged

Conversation

magik6k
Copy link
Contributor

@magik6k magik6k commented Sep 30, 2021

Small util to automatically manage balances in multiple wallets. Useful with multiple control addresses.

Maybe someday this will become it's own thing / live in lotus, but for now shed seems to be a good enough place.

@magik6k magik6k requested a review from a team as a code owner September 30, 2021 18:22
@codecov
Copy link

codecov bot commented Sep 30, 2021

Codecov Report

Merging #7414 (0262f1c) into master (2620eab) will decrease coverage by 0.13%.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7414      +/-   ##
==========================================
- Coverage   39.69%   39.56%   -0.14%     
==========================================
  Files         633      634       +1     
  Lines       67337    67460     +123     
==========================================
- Hits        26730    26688      -42     
- Misses      36004    36164     +160     
- Partials     4603     4608       +5     
Impacted Files Coverage Δ
cmd/lotus-shed/balancer.go 0.00% <0.00%> (ø)
cmd/lotus-shed/main.go 0.00% <0.00%> (ø)
chain/events/observer.go 71.64% <0.00%> (-6.72%) ⬇️
extern/sector-storage/manager_calltracker.go 57.70% <0.00%> (-4.85%) ⬇️
chain/stmgr/execute.go 86.95% <0.00%> (-4.35%) ⬇️
chain/stmgr/call.go 67.87% <0.00%> (-3.64%) ⬇️
itests/kit/blockminer.go 93.65% <0.00%> (-1.59%) ⬇️
chain/stmgr/searchwait.go 66.02% <0.00%> (-1.29%) ⬇️
extern/storage-sealing/fsm.go 55.77% <0.00%> (-1.20%) ⬇️
chain/vm/vm.go 61.89% <0.00%> (-1.12%) ⬇️
... and 12 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2620eab...0262f1c. Read the comment docs.

cmd/lotus-shed/balancer.go Outdated Show resolved Hide resolved
})
}
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Short-circuit if no toSends?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Computers are fast

@magik6k magik6k merged commit 51753a1 into master Nov 22, 2021
@magik6k magik6k deleted the feat/shed-wallet-balancer branch November 22, 2021 17:11
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.

2 participants