Steven Allen
f9d2a23132
fix(lotus-sim): correctly handle cancellation in walk
...
1. Select order is not guaranteed, always check if the context has been
canceled explicitly.
2. Never close a work channel unless we're actually done. This can yield
out-of-order results due to buffering.
2021-06-18 15:44:36 -07:00
Steven Allen
ec3f969e9a
feat(lotus-sim): allow walking back past the start
2021-06-18 15:44:36 -07:00
Steven Allen
f6043a0250
feat(lotus-sim): measure daily power growth
2021-06-18 15:44:36 -07:00
Steven Allen
52261fb814
refactor(lotus-sim): enterprise grade
...
While the previous version "worked", this version nicely separates out
the state for the separate stages. Hopefully, we'll be able to use this
to build different pipelines with different configs.
2021-06-18 15:44:36 -07:00
Steven Allen
8a215df46b
fix(statetree): make StateTree.ForEach take layers into account
...
This likely isn't used anywhere, but this _should_ take layers into
account (and I kind of just assumed it did).
2021-06-18 15:44:36 -07:00
Jakub Sztandera
7dd58efb84
Add quantiles and histogram
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2021-06-18 15:44:36 -07:00
Steven Allen
2721279e87
fix(lotus-sim): describe info commands
2021-06-18 15:44:36 -07:00
Steven Allen
985994cc0f
feat(lotus-sim): add command for analyzing post stats over time
2021-06-18 15:44:36 -07:00
Steven Allen
707b3bf08a
fix(lotus-sim): refuse to start simulation with no miners
2021-06-18 15:44:36 -07:00
Steven Allen
d551f2b4bd
feat(lotus-sim): print duration info in days
2021-06-18 15:44:36 -07:00
Steven Allen
1df5445ed2
feat(lotus-sim): make walk parallel
2021-06-18 15:44:36 -07:00
Steven Allen
fbaffe86da
fix(lotus-sim): return error from walk
2021-06-18 15:44:36 -07:00
Steven Allen
500fae6a52
fix(lotus-sim): less indentation in info
2021-06-18 15:44:36 -07:00
Steven Allen
ab59474c4c
fix(lotus-sim): count single prove-commits when computing efficiency
2021-06-18 15:44:36 -07:00
Jakub Sztandera
3d3c26fa0c
Add lookback limit
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2021-06-18 15:44:36 -07:00
Steven Allen
68593ce995
fix(lotus-sim): obey context in walk
2021-06-18 15:44:36 -07:00
Jakub Sztandera
ca9eadd7c7
Add gas info command
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2021-06-18 15:44:36 -07:00
Steven Allen
16449007ab
fix(lotus-sim): fix funding error check
2021-06-18 15:44:35 -07:00
Steven Allen
8d734d81d9
fix(lotus-sim): log failed pre-commits and continue
2021-06-18 15:44:35 -07:00
Steven Allen
783dc5a33d
fix(lotus-sim): fund multiple times
...
Sometimes, a miner is deep in the red.
2021-06-18 15:44:35 -07:00
Steven Allen
be713ec04a
fix(lotus-sim): we always fill the block with pre-commits
2021-06-18 15:44:35 -07:00
Steven Allen
c18ca60d28
fix(lotus-sim): specify ErrWriter
...
Apparently, it defaults to nil...
2021-06-18 15:44:35 -07:00
Steven Allen
977bf1cad9
fix(lotus-sim): write pprof profiles to a directory
...
We need to know the sizes up-front for tar, and that's not happening.
2021-06-18 15:44:35 -07:00
Steven Allen
7a8bfd8725
doc(lotus-sim): document signals
2021-06-18 15:44:35 -07:00
Steven Allen
a3f64e0768
fix(lotus-sim): profile signal handling
2021-06-18 15:44:35 -07:00
Steven Allen
5766002370
fix(lotus-sim): guard info with dashes
2021-06-18 15:44:35 -07:00
Steven Allen
4a80c83533
fix(lotus-sim): fix spelling
2021-06-18 15:44:35 -07:00
Steven Allen
936659d087
feat(lotus-sim): print info on SIGUSR1
2021-06-18 15:44:35 -07:00
Steven Allen
dcdb0abe27
feat(lotus-sim): profile on SIGUSR2
2021-06-18 15:44:35 -07:00
Steven Allen
2b77c17546
chore(lotus-sim): fix import grouping
...
I got a bit lazy when developing this.
2021-06-18 15:44:35 -07:00
Steven Allen
1802ae31a6
feat(lotus-sim): record timing information for pre/prove-commit packing
2021-06-18 15:44:35 -07:00
Steven Allen
868231adc7
fix(lotus-sim): don't take from the fund account when funding
2021-06-18 15:44:35 -07:00
Steven Allen
2b4f865665
feat(lotus-sim): fund from a funding account
...
Instead of funding the simulation from the burnt-funds actor, fund from
a custom account and take a "tax" to fund that account.
Otherwise, we run out of funds...
2021-06-18 15:44:35 -07:00
Steven Allen
e7b1e09ade
feat(multisig): expose ApproveReturn
2021-06-18 15:44:35 -07:00
Steven Allen
86e459f585
feat(lotus-sim): return receipt
...
Instead of returning a "full" boolean and an error, return a receipt and
an error. We now use the error to indicate if the block is "full".
2021-06-18 15:44:35 -07:00
Steven Allen
0075abea5e
fix(vm): always specify an ActorErr when ApplyMessage fails.
...
This case shouldn't actually happen, but we might as well be consistent.
2021-06-18 15:44:35 -07:00
Steven Allen
88af350774
fix(lotus-sim): use global base-fee value
2021-06-18 15:44:35 -07:00
Steven Allen
747b3d3e57
fix(lotus-sim): skip miners without power when loading
2021-06-18 15:44:35 -07:00
Steven Allen
ba65a1ba9b
chore(lotus-sim): rename stat to info
2021-06-18 15:44:35 -07:00
Steven Allen
e097ba8640
feat(lotus-sim): wire up signal handler
2021-06-18 15:44:35 -07:00
Steven Allen
4578e0dd8d
chore(lotus-sim): remove dead code
2021-06-18 15:44:35 -07:00
Steven Allen
77f0fee58e
chore(lotus-sim): fix comment about simulation block miner
2021-06-18 15:44:35 -07:00
Steven Allen
bb4753ffbf
feat(lotus-sim): add commands to rename and copy
2021-06-18 15:44:35 -07:00
Steven Allen
4f0b9eefc1
fix(lotus-sim): check for slash in names on copy
2021-06-18 15:44:35 -07:00
Steven Allen
8410b0f79f
feat(lotus-sim): add a feature to copy/rename simulation.
...
Useful to backup old simulations before creating a new one.
2021-06-18 15:44:35 -07:00
Steven Allen
c5dc67ccd8
feat(lotus-sim): add a walk function
...
This way, we can easily walk the chain and:
1. Inspect messages and their results.
2. Inspect tipset state.
2021-06-18 15:44:35 -07:00
Steven Allen
ccdd660f0d
feat(lotus-sim): more stats
2021-06-18 15:44:35 -07:00
Steven Allen
5f6733fe44
feat(lotus-sim): expose StateManager from Simulation
2021-06-18 15:44:35 -07:00
Steven Allen
0faacbe154
feat(lotus-sim): store start tipset
2021-06-18 15:44:35 -07:00
Steven Allen
a57c509e1e
fix(lotus-sim): cleanup and document pre-commit filtering
2021-06-18 15:44:35 -07:00