Łukasz Magiera
82bd7bd2ec
Merge pull request #4224 from filecoin-project/fix/repub-journal
...
Fix Messages field in MessagePoolEvtMessage journal entry
2020-10-08 23:33:57 +02:00
Jakub Sztandera
973f61bc10
Optimize chain and message sync
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-10-08 23:10:07 +02:00
Jakub Sztandera
60768f4863
Optimize SearchForMessage and GetReceipt
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-10-08 23:10:06 +02:00
Łukasz Magiera
17f61ac212
Merge pull request #4245 from filecoin-project/debug/chain-sync-lookback
...
add more info to chain sync lookback failure
2020-10-08 17:05:08 +02:00
whyrusleeping
cdc2f86f5a
add more info to chain sync lookback failure
2020-10-08 09:45:07 -05:00
Łukasz Magiera
7332a39f00
Merge remote-tracking branch 'origin/master' into fix/balances-audit-no-suffix
2020-10-08 13:58:40 +02:00
whyrusleeping
cd9af278b4
more info in audit outputs
2020-10-07 17:01:01 -07:00
Łukasz Magiera
8dd8892b81
Merge remote-tracking branch 'origin/next' into feat/faster-v2-upgrade
2020-10-08 01:54:29 +02:00
Łukasz Magiera
79dba816c7
Merge pull request #4232 from filecoin-project/steb/fix-v2-actor-error
...
return an illegal actor error when we see an unsupported actor version
2020-10-08 01:47:10 +02:00
Łukasz Magiera
f9f54819d4
Env var to control v2 actor migration
...
Env var to control v2 actor migration
2020-10-07 19:41:36 -04:00
Aayush Rajasekaran
d1555106a4
Set actorsv2 upgrade epoch
2020-10-07 19:41:36 -04:00
Steven Allen
d97eb10349
fix spelling nit
2020-10-07 16:32:54 -07:00
Steven Allen
e8253d22c6
only forbid Call* at expensive forks
2020-10-07 16:14:11 -07:00
whyrusleeping
8f4911ac0d
dont print fil suffix in lotus shed audit balances
2020-10-07 16:00:52 -07:00
Steven Allen
b0bea5f145
return an illegal actor error when we see an unsupported actor version
...
As far as the chain is concerned, this actor does not exist.
2020-10-07 15:46:56 -07:00
Steven Allen
1fea550ce5
test that we refuse explicit calls at the migration epochs
2020-10-07 15:33:14 -07:00
Steven Allen
9b7b6146eb
construct the new vm with the state manager's vm constructor
2020-10-07 15:31:14 -07:00
Steven Allen
dab1107f5b
avoid estimating gas and explicitly calling blocks on fork tipsets
...
These tipsets can be slow.
2020-10-07 15:31:14 -07:00
Steven Allen
fe912223bd
pass an explicit upgrade height to migrations
...
The tipset height may not be the correct one, given null blocks.
2020-10-07 15:31:12 -07:00
Jakub Sztandera
6f4a762664
Fix Messages field in MessagePoolEvtMessage journal entry
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-10-07 21:13:04 +02:00
Steven Allen
cca17f6078
fix state tree version in v2 upgrade
2020-10-07 12:04:32 -07:00
Steven Allen
e803cf151f
introduce separate state-tree versions
...
Instead of versioning the state tree along with the actors, version it
separately. This structure may not upgrade every time we update actors.
2020-10-07 12:04:32 -07:00
Steven Allen
df4b068d0e
Merge branch 'master' into next
2020-10-07 11:55:00 -07:00
Steven Allen
6eb49b717f
Merge pull request #4214 from filecoin-project/gas-tracing-public
...
make vm.EnableGasTracing public.
2020-10-07 11:12:55 -07:00
Whyrusleeping
099b982ea8
Merge pull request #4178 from filecoin-project/frrist/miner-diff-deadlines
...
feat(miner): add miner deadline diffing logic.
2020-10-07 12:00:31 -05:00
Raúl Kripalani
7cd1330acd
make vm.EnableGasTracing public.
2020-10-07 15:52:03 +01:00
Łukasz Magiera
d6fa644974
Fix lint
2020-10-07 14:19:04 +02:00
Łukasz Magiera
b7c8f65af5
stmgr: Make v2 upgrade faster
2020-10-07 08:12:05 +02:00
Aayush Rajasekaran
839d1121ce
Update to actors v2.0.1
2020-10-06 20:37:54 -04:00
Łukasz Magiera
2f70a91665
Merge remote-tracking branch 'origin/master' into next
2020-10-06 23:54:59 +02:00
Aayush Rajasekaran
dfaabb4596
Merge pull request #3697 from filecoin-project/fix/actor-panic-fatal
...
fix: error when actor panics directly
2020-10-06 17:41:31 -04:00
Aayush Rajasekaran
4d6a0f7b8c
Set WinningPoStSectorSetLookback to finality post-v2 actors
2020-10-06 17:40:37 -04:00
Aayush Rajasekaran
282c99bdbd
Merge pull request #4160 from filecoin-project/asr/reserve-funds-cric-supply
...
Add funds that have left FilReserve to circ supply
2020-10-06 17:39:05 -04:00
Aayush Rajasekaran
9857e42206
Merge pull request #4188 from filecoin-project/asr/miner-eligible
...
Update miner eligibility checks for v2 actors
2020-10-06 17:38:46 -04:00
Aayush Rajasekaran
d9fad5fad0
Move rt.Message fixes behind fork logic
2020-10-06 17:37:50 -04:00
Aayush Rajasekaran
757aa1039f
Panic if runtime's Message has non-ID caller or receiver
2020-10-06 17:37:50 -04:00
Aayush Rajasekaran
b71b743420
Bugfix: Runtime's Receiver() should only return ID addresses
2020-10-06 17:37:50 -04:00
Steven Allen
b1818a1055
fix base fee tests for different smoke heights
2020-10-06 13:12:16 -07:00
Steven Allen
256be285ba
only enable gas tampering if the breeze upgrade is enabled
2020-10-06 13:00:06 -07:00
Steven Allen
4a6e9c920d
set genesis name in test
2020-10-06 11:42:04 -07:00
frrist
d4cbd4fb55
feat(miner): add miner deadline diffing
...
- logic gathering all removed, faulted, recovered, and recovering
sectors for a miner.
2020-10-06 11:39:38 -07:00
Łukasz Magiera
15330396bb
Fix circ supply before v2 upgrade epoch
2020-10-06 16:53:49 +02:00
Łukasz Magiera
a179cadf0e
wallet: Don't output duplicate keys from WalletList
2020-10-06 13:35:31 +02:00
Aayush Rajasekaran
7b556252db
Use SysErrReserved1 in the event of an actors panic
2020-10-06 05:34:53 -04:00
Aayush Rajasekaran
4a9155ba85
Use new MinerEligibleToMine method post-v2 actors
2020-10-06 04:43:55 -04:00
Aayush Rajasekaran
f8c886a611
Rename MiningBaseInfo.HasMinPower to EligibleForMining
2020-10-06 03:49:11 -04:00
Aayush Rajasekaran
d02fc08ca4
Support both testnet and mainnet addresses in the internal wallet
2020-10-06 03:27:46 -04:00
Aayush Rajasekaran
14ad91c53f
Add type assertion for v2 runtime
2020-10-06 01:27:45 -04:00
Aayush Rajasekaran
f55b18eabe
Add funds that have left FilReserve to circ supply
2020-10-05 23:54:57 -04:00
Aayush Rajasekaran
6d25f3d2ae
Add some comments
2020-10-05 18:39:39 -04:00
Steven Allen
17846aad2f
add some more policy toggles for testground
2020-10-05 14:28:47 -07:00
whyrusleeping
bd0633ff90
add a command to view block space utilization
2020-10-05 14:06:03 -07:00
Steven Allen
8bcc201fc0
fix v2 GetSectorExpiration
2020-10-05 10:54:22 -07:00
Steven Allen
420c44ed2c
fix msig start height
2020-10-05 10:35:21 -07:00
Steven Allen
b6500beaab
Merge branch 'master' into asr/spec-v1
2020-10-05 10:29:09 -07:00
Steven Allen
b9f8831aaf
fix specs-actors import in payment channel abstraction
...
Co-authored-by: Łukasz Magiera <magik6k@users.noreply.github.com>
2020-10-05 09:51:04 -07:00
Dirk McCormick
7c3f622fae
refactor: message signer - always store *next* nonce in datastore
2020-10-05 14:54:22 +02:00
Dirk McCormick
140671599c
fix: make message signer nonce generation transactional
2020-10-05 14:19:31 +02:00
Łukasz Magiera
0162a485d8
Merge pull request #4142 from filecoin-project/steb/bs-sessions
...
use bitswap sessions when fetching messages, and cancel them
2020-10-05 11:33:21 +02:00
Aayush Rajasekaran
4631cee564
Merge pull request #4114 from filecoin-project/fix/fork-after-cron
...
Run fork function after cron for null block safety
2020-10-02 23:05:36 -04:00
Steven Allen
8292d60196
Merge branch 'master' into asr/spec-v1
2020-10-02 18:03:03 -07:00
Steven Allen
c5de617af6
decouple network version and upgrades
...
Not all upgrades require network version bumps.
2020-10-02 17:10:57 -07:00
Łukasz Magiera
bd964b4c3e
Merge pull request #4124 from filecoin-project/asr/verifreg
...
Some helpers for verifreg work
2020-10-03 00:20:45 +02:00
Łukasz Magiera
f147072284
Merge remote-tracking branch 'origin/master' into feat/pruning-command
2020-10-02 23:37:25 +02:00
Łukasz Magiera
a3a3df9b30
Merge pull request #3915 from filecoin-project/feat/mpool-gateway-api
...
MpoolPushUntrusted API for gateway
2020-10-02 23:30:25 +02:00
Łukasz Magiera
0591bac768
Compare more accurately
...
Co-authored-by: dirkmc <dirkmdev@gmail.com>
2020-10-02 23:18:37 +02:00
ZenGround0
fecc1ee0ef
Review cleanup
2020-10-02 17:12:12 -04:00
Łukasz Magiera
3bebdb3882
Merge remote-tracking branch 'origin/master' into feat/mpool-gateway-api
2020-10-02 23:09:55 +02:00
Steven Allen
53cc1f18d0
use bitswap sessions when fetching messages, and cancel them
...
1. Explicitly use a session when fetching messages for a block. Technically,
GetBlocks would use an internal session so we'd only end up with two, but one
per block is even better.
2. Actually cancel sessions after a timeout (threading through the context).
NOTE: We should seriously consider having a single session for all blocks, but
we can do that in a followup as it may have unintended consequences (e.g., leaks).
2020-10-02 10:49:35 -07:00
Steven Allen
ed86ac14a1
use upgrade epochs from upgrade schedule
2020-10-01 20:37:14 -07:00
Steven Allen
101d07f704
fix version off by one error
2020-10-01 15:33:32 -07:00
Steven Allen
e865ba0c64
improve upgrade schedule configurable
...
Unfortunately, it looks like functional ops cannot be passed in via lotus's
di system.
2020-10-01 15:18:59 -07:00
Steven Allen
1cc0f74744
make the upgrade schedule fully configurable
...
This should help with testing.
2020-10-01 15:02:40 -07:00
Dirk McCormick
9dc75a7bc4
fix: verify voucher amount check
2020-10-01 11:35:41 +02:00
Aayush Rajasekaran
3d91633699
Update to v2/actors master
2020-10-01 05:07:00 -04:00
Aayush Rajasekaran
93e4eae94c
Some helpers for verifreg work
2020-10-01 04:49:38 -04:00
Aayush Rajasekaran
60d442e36a
Slash filter shouldn't be trigerred if the same block is submitted multiple times
2020-09-30 22:05:16 -04:00
Steven Allen
47a83b422e
handle state forks in gas estimation
2020-09-30 15:52:32 -07:00
Steven Allen
9d59635b42
fix error messages
2020-09-30 15:04:16 -07:00
Steven Allen
42d5d8d784
run upgrade logic on stmgr.Call
2020-09-30 14:56:16 -07:00
ZenGround0
8091bb3117
Run fork function after cron
2020-09-30 17:19:58 -04:00
Steven Allen
8dcbd525da
abstract over deal collateral
2020-09-30 13:30:24 -07:00
Steven Allen
b01a1d457a
abstract multisig calls
2020-09-30 12:30:02 -07:00
Steven Allen
2e9915ac28
move common from message param into message builder constructor
2020-09-30 10:58:34 -07:00
Steven Allen
5253c0d959
fix: import the correct v2 methods
2020-09-30 10:11:48 -07:00
Steven Allen
4c60d7b5ce
abstract over paych messages
2020-09-30 10:04:10 -07:00
Steven Allen
4989b1cc90
Merge branch 'master' into asr/spec-v1
2020-09-30 09:19:12 -07:00
Łukasz Magiera
76b1ec1de0
Merge pull request #4065 from filecoin-project/asr/sync-validate
...
Add lotus shed util to validate a tipset
2020-09-30 09:24:47 +02:00
Łukasz Magiera
7a3a2f8db9
Merge pull request #3924 from filecoin-project/feat/dont-recompute-PoST-redux
...
Dont recompute post on revert <<redux>>
2020-09-30 09:18:46 +02:00
Aayush Rajasekaran
c45c8f34a1
Parametrise whether sync validators should use cache
2020-09-30 01:39:06 -04:00
Aayush Rajasekaran
a4e7117429
Add lotus shed util to validate a tipset
2020-09-30 01:29:04 -04:00
Łukasz Magiera
237c8c4deb
Merge pull request #3868 from austinabell/async/stransition
...
Make state transition in validation async
2020-09-29 16:50:52 +02:00
Jakub Sztandera
76db65b1af
Update pebble
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-09-29 14:49:47 +02:00
Jakub Sztandera
55c6b88537
Add toggle for badger, flag out gas tracing
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-09-29 14:49:46 +02:00
Jakub Sztandera
b7f18b4601
Disable callers
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-09-29 14:49:18 +02:00
Łukasz Magiera
1479142047
Merge pull request #3970 from filecoin-project/feat/mpool-to-wallet
...
refactor: move nonce generation out of mpool
2020-09-29 13:24:35 +02:00
Dirk McCormick
d1c10a61dd
fix: message signer - always compare with mpool nonce
2020-09-29 12:20:09 +02:00
Aayush Rajasekaran
be9d23b329
Centralize some params in builtin
2020-09-29 02:25:43 -04:00
Steven Allen
dd65e57d4b
set policy correctly from test vectors
2020-09-28 17:53:11 -07:00
Steven Allen
e658ab3287
fix policy test
2020-09-28 17:44:34 -07:00
Steven Allen
c0e190344d
check state invariants after upgrade
2020-09-28 17:42:29 -07:00
Steven Allen
1c03862854
fix policy for specs-actors update
2020-09-28 17:28:16 -07:00
Steven Allen
2315db161b
cleanup state-tree loading
...
And remove incorrect comment.
2020-09-28 16:46:29 -07:00
Steven Allen
01272f850d
fix state test
2020-09-28 16:23:46 -07:00
Steven Allen
b95b871943
actually upgrade to actors v2
2020-09-28 16:14:51 -07:00
Steven Allen
a314cfd237
process error when setting network name
2020-09-28 15:59:11 -07:00
Steven Allen
c0b316fd9c
finish wiring up actors v2
2020-09-28 15:58:07 -07:00
Steven Allen
3e6323a503
make setNetworkName work with any actors version
2020-09-28 15:54:48 -07:00
Steven Allen
d1000e38d7
wire up network upgrade logic for v2 actors upgrade
2020-09-28 15:50:54 -07:00
Steven Allen
c88d124954
use built-in actor ID
...
The init actor will not allow the account actor to exec an arbitrary actor.
2020-09-28 14:43:55 -07:00
Steven Allen
233d8a9b72
update even more imports
2020-09-28 14:25:58 -07:00
Steven Allen
52e064dabb
add gas numbers for v2
2020-09-28 14:09:46 -07:00
Steven Allen
ca9448bc11
rename actors v1 -> actors v2
...
The actual actors version is v2, not v1. Using Version1 internally was really confusing.
2020-09-28 13:13:18 -07:00
Steven Allen
2049daa008
fix actor imports
2020-09-28 13:12:41 -07:00
Steven Allen
947d1e2902
Merge branch 'master' into asr/spec-v1
2020-09-28 12:53:40 -07:00
Steven Allen
5f3160cf5b
continue expanding vm abstraction layer
2020-09-28 12:48:08 -07:00
Jakub Sztandera
2633198e6c
Merge pull request #4056 from zgfzgf/tipset-equals
...
optimize Tipset equals
2020-09-28 20:15:54 +02:00
Dirk McCormick
cfe6f595b0
fix: unsafe append in LoadTipSet
2020-09-28 16:54:18 +02:00
Dirk McCormick
6b16d48bad
refactor: fetch tipset blocks in parallel
2020-09-28 15:56:44 +02:00
Łukasz Magiera
bc495a5c8c
Merge pull request #4049 from filecoin-project/fix/miner-power-cli
...
fix GetPower with no miner address
2020-09-28 11:30:54 +02:00
zgfzgf
04876c663e
modify tipset Equals
2020-09-27 10:17:06 +08:00
zgfzgf
70071e273d
optimize tipset Equals func
2020-09-27 09:58:37 +08:00
whyrusleeping
bddd6dd8a8
fix GetPower with no miner address
2020-09-26 11:06:16 -05:00
Łukasz Magiera
3fe0aa5026
Merge pull request #4030 from filecoin-project/feat/export-logging
...
add logging to chain export
2020-09-26 10:14:32 +02:00
Łukasz Magiera
6a502090f4
Merge pull request #4028 from filecoin-project/asr/address-update
...
Add an envvar to set address network version
2020-09-26 10:14:10 +02:00
Aayush Rajasekaran
12e97dbea7
Fix docs and linter
2020-09-26 02:59:24 -04:00
Łukasz Magiera
ef28ebb14a
Ignition upgrades, much excite.
2020-09-25 23:55:37 -07:00
Steven Allen
a5f13a5b31
Test supported proof types.
2020-09-25 14:36:36 -07:00
Aayush Rajasekaran
d8431ff611
Fix AddSupportedProofTypes
2020-09-25 17:33:25 -04:00
Travis Person
a13d10e42d
add logging to chain export
2020-09-25 20:20:18 +00:00
Steven Allen
271ceb968a
add v1 support to the state tree
2020-09-25 12:55:10 -07:00
Steven Allen
b8d9d7894f
fix vm version
2020-09-25 12:52:16 -07:00
Steven Allen
7d3bd146e6
rebase fixup
2020-09-25 12:51:02 -07:00
Steven Allen
8b35f480c4
initial vm conversion
...
We're probably going to want to change some of these design decisions down the
road, but this is a good starting point.
* We may want to use a more general test for "is actor valid at epoch". Maybe
just a function?
* I'd like to push some of the actor metadata down into the actor types
themselves. Ideally, we'd be able to register actors with a simple
`Register(validation, manyActors...)` call.
2020-09-25 12:49:39 -07:00
Steven Allen
d9656f5220
add a generic load method for actor state
...
This will make it easier to load arbitrary actors. We can:
* Type switch (sort of unsafe, may want marker methods?)
* Use this with `vm.MutateActorState`.
2020-09-25 12:49:39 -07:00
Steven Allen
87351fa35c
move version to actors, from builtin
...
Otherwise, we're going to end up with an import cycle between the adt and this
version.
2020-09-25 12:49:39 -07:00
Steven Allen
edb31e606a
correctly load new actors
2020-09-25 12:49:39 -07:00
Steven Allen
8806f27220
fix runtime reflection for upgrade
2020-09-25 12:49:39 -07:00
Steven Allen
858f11992f
compile fix
2020-09-25 12:49:39 -07:00
Steven Allen
35562bd2f9
fixup v1 actors for new methods
...
Also, correctly handle multiple ADT versions.
2020-09-25 12:49:39 -07:00
Aayush Rajasekaran
ebad0ded3d
Introduce v1 actors
2020-09-25 12:49:39 -07:00
Aayush Rajasekaran
60e43ccbb1
Add an envvar to set address network version
2020-09-25 15:45:27 -04:00
Steven Allen
bdc782617f
return an error when we fail to find a sector when checking sector expiration
...
Returning nil, nil is a footgun.
fix: https://github.com/filecoin-project/lotus/issues/3984
2020-09-25 11:28:38 -07:00
Dirk McCormick
80a7ed8116
refactor: use abstract types instead of specs-actors
2020-09-25 15:54:27 +02:00
Raúl Kripalani
68663060dc
add state.StateTree#Version() accessor.
2020-09-24 17:58:49 +01:00
Łukasz Magiera
85caa48814
Merge pull request #3991 from filecoin-project/feat/nicer-syncwait
...
Make sync wait nicer
2020-09-24 17:03:21 +02:00
Łukasz Magiera
17a84c9a2c
Merge pull request #3975 from filecoin-project/steb/abstract-actor-policy
...
Add some actors policy setters for testing
2020-09-24 15:51:41 +02:00
Łukasz Magiera
2867b31d2b
Merge pull request #3208 from austinabell/extratsload
...
Update beacon entry load error message
2020-09-24 14:19:00 +02:00
Dirk McCormick
3c524ac0e0
refactor: move nonce generation from mpool to wallet
2020-09-24 14:09:42 +02:00
Łukasz Magiera
1a70dd4fb4
Merge pull request #3977 from filecoin-project/steb/remove-cbor-abstraction
...
Remove a misleading miner actor abstraction
2020-09-24 14:02:59 +02:00