Yusef Napora
566a99240d
allow overriding drand config
2020-06-23 13:33:18 -04:00
Jakub Sztandera
156a14eeeb
Integrate Poisson Sortition into chain sync
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-23 16:59:44 +02:00
Jakub Sztandera
97088e3109
Add golden test for exp function
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-23 16:33:10 +02:00
Jakub Sztandera
2b597fb780
Add tests for lambda
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-23 16:24:02 +02:00
Jakub Sztandera
efeaa9b6ad
Fix lint warnings
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-23 16:24:02 +02:00
Jakub Sztandera
d7f710806b
Implement golden tests for Poisson distribution
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-23 16:24:02 +02:00
Jakub Sztandera
d92362f96e
Add comments about algorithm
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-23 16:24:02 +02:00
Jakub Sztandera
8fea872345
Refactor poisson to struct for easier testing
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-23 16:24:02 +02:00
Jakub Sztandera
84c0b50aa1
Rename fxToD
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-23 16:24:01 +02:00
Jakub Sztandera
f523b17a35
Improve performance of ComputeWinCount
...
As it turns out `big.Int#Mul` doesn't like it when you reuse input as
output.
```
name old time/op new time/op delta
WinCounts-8 4.56µs ± 1% 3.90µs ± 2% -14.44% (p=0.000 n=9+10)
name old alloc/op new alloc/op delta
WinCounts-8 3.50kB ± 0% 1.15kB ± 0% -67.23% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
WinCounts-8 45.0 ± 0% 24.0 ± 0% -46.67% (p=0.000 n=10+10)
```
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-23 16:24:01 +02:00
Jakub Sztandera
ee5639aad9
Initial implementation of Poisson Sortition
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-23 16:24:01 +02:00
Łukasz Magiera
9e70e95242
sync: Correctly pass blocks to ValidateBlock
2020-06-23 14:10:47 +02:00
whyrusleeping
b71f771acb
run block validation for tipsets in parallel
2020-06-22 16:09:05 -07:00
laser
5e77b5da9f
bump from 3 to 4 digits in format-string
...
Fixes #1993
2020-06-19 08:51:06 -07:00
Jakub Sztandera
b91e7a9860
Update to specs actors with ChargeGas interface
...
Based on `lotus-0.6.1-chargegas` in specs-actors.
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-17 20:00:30 +02:00
Łukasz Magiera
bdcb1e3592
Merge pull request #2029 from filecoin-project/feat/gas-delta-output
...
add some smartness to bench analyze gas output
2020-06-17 18:44:10 +02:00
Łukasz Magiera
6bff52483b
Merge pull request #1973 from filecoin-project/feat/drand-upd
...
Update to new drand
2020-06-16 15:30:40 +02:00
Jakub Sztandera
fd6c8769dd
Update to new drand
...
WIP
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-16 14:46:30 +02:00
Łukasz Magiera
ab4c11c096
Merge remote-tracking branch 'origin/master' into next
2020-06-16 12:04:29 +02:00
Aayush Rajasekaran
d8a517f992
Syncer::InformNewHead can quickly fail if height is impossibly large
2020-06-16 00:51:00 -04:00
Aayush Rajasekaran
aa513d920e
Merge pull request #1705 from hayeah/cache-tipset-validation-progress
...
Cache tipset validation progress
2020-06-16 00:14:11 -04:00
Aayush Rajasekaran
a9abf3ceb2
extract the fake Wpost used for testing
2020-06-15 21:02:53 -04:00
Aayush Rajasekaran
ed3b2716af
Don't verify ElectionPostVRF when insecure validation enabled
2020-06-15 21:02:25 -04:00
Jeromy
f8c4b64782
improve chain import analyze output, add some rough virtual gas charges
2020-06-15 16:05:29 -07:00
Łukasz Magiera
0230362d33
Merge pull request #2025 from filecoin-project/deps/specs-actors-v0.6
...
specs-actors v0.6
2020-06-15 21:30:37 +02:00
Jakub Sztandera
8039701f9e
Use extra field in gastrace
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-15 19:52:04 +02:00
Łukasz Magiera
907364ce67
Update deps, fix more tests
2020-06-15 18:30:49 +02:00
Jakub Sztandera
18cf7b046e
Merge pull request #2024 from filecoin-project/feat/virtual-gas
...
Add virtual gas
2020-06-15 18:27:24 +02:00
Jakub Sztandera
2a78ebabd9
Use HashVerify
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-15 17:39:16 +02:00
Jakub Sztandera
a23a87a17f
Add virtual gas
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-15 16:18:05 +02:00
Łukasz Magiera
7296ce7287
Merge remote-tracking branch 'origin/next' into feat/merge-master
2020-06-15 14:40:29 +02:00
Łukasz Magiera
70c8f7b1ee
Merge remote-tracking branch 'origin/master' into feat/merge-master
2020-06-15 14:38:38 +02:00
Howard Yeh
c822816f8e
Cache tipset validation progress
2020-06-14 18:41:17 +08:00
Ignacio Hagopian
82c6be14f4
unchecked errs
...
Signed-off-by: Ignacio Hagopian <jsign.uy@gmail.com>
2020-06-12 22:34:00 -03:00
Łukasz Magiera
fb4ad043dd
Merge pull request #2011 from filecoin-project/feat/more-callers
...
Expose more callers, ellipsis unimportant ones
2020-06-13 01:55:26 +02:00
Jakub Sztandera
91ea039077
Change ellipsis, more accurate timing
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-12 20:46:04 +02:00
Łukasz Magiera
8e025db656
Merge pull request #2014 from filecoin-project/fix/chain-reorgs-race
...
fix a potential race with chain reorgs notifees.
2020-06-12 20:35:16 +02:00
Raúl Kripalani
4e9293ba04
fix a potential race with chain reorgs notifees.
2020-06-12 19:18:23 +01:00
Jakub Sztandera
8ad2b3c3d9
Removed commented out code
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-12 18:58:55 +02:00
Jakub Sztandera
cd69e57a33
Expose more callers, ellipsis unimportant ones
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-12 18:49:29 +02:00
Jakub Sztandera
071ddf6563
Add aggregate number, add number of bytes for storage calls
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-11 22:25:24 +02:00
Jakub Sztandera
c90d35869b
Add gas tracing
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-11 21:59:39 +02:00
Jakub Sztandera
6acc9a62f8
Split gas internally into compute gas and storage gas
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-11 20:37:14 +02:00
Łukasz Magiera
c8046f4597
Merge branch 'next' of github.com:filecoin-project/go-lotus into next
2020-06-11 18:24:51 +02:00
Jakub Sztandera
491f080a37
Merge remote-tracking branch 'origin/master' into feat/merge-master
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-11 17:59:27 +02:00
waynewyang
8354bd91db
fix:the condition of time-offset mining fault
2020-06-11 23:52:44 +08:00
Łukasz Magiera
c9a845d3aa
Merge remote-tracking branch 'origin/master' into next
2020-06-11 16:29:26 +02:00
Jakub Sztandera
c3f23ddce8
Refactor ExecutionResult to ExecutionTrace
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-11 15:53:47 +02:00
Łukasz Magiera
8b308972a4
chainstore index: Drop wrong check
2020-06-11 15:43:24 +02:00
Jeromy
ac1048fcd7
test a few more cases
2020-06-11 12:31:32 +02:00
Jeromy
14ea847ef6
fix chain index seeking through long ranges of null rounds
2020-06-11 12:31:32 +02:00
Lucas Molas
dc112a5a00
Lotus architecture notes ( #1768 )
...
Co-authored-by: Aayush Rajasekaran <arajasek94@gmail.com>
2020-06-11 12:31:32 +02:00
Jeromy
512270593b
clean up some of the more spammy logs
2020-06-11 12:31:29 +02:00
Mike Greenberg
2cd6347a13
Express block validation, cpu/mem usage via OpenCensus
2020-06-11 12:31:04 +02:00
Jeromy
1aff04faab
test a few more cases
2020-06-10 22:17:29 -07:00
Jeromy
295c0861c4
fix chain index seeking through long ranges of null rounds
2020-06-10 22:15:46 -07:00
Lucas Molas
469eef8231
Lotus architecture notes ( #1768 )
...
Co-authored-by: Aayush Rajasekaran <arajasek94@gmail.com>
2020-06-09 20:17:28 -03:00
Jeromy
686c543778
clean up some of the more spammy logs
2020-06-09 12:49:31 -07:00
Mike Greenberg
ae83ca6893
Express block validation, cpu/mem usage via OpenCensus
2020-06-08 14:15:01 -04:00
Łukasz Magiera
3b56288a5e
Merge remote-tracking branch 'origin/master' into next
2020-06-08 18:29:36 +02:00
Aayush Rajasekaran
49b27da426
Add delete functionality to the wallet
2020-06-07 19:36:01 -04:00
Whyrusleeping
366359803a
Merge pull request #1903 from filecoin-project/feat/reuse-get-tipset-by-height
...
reuse GetTipsetByHeight in GetRandomness
2020-06-05 16:06:28 -07:00
Łukasz Magiera
163c2b2544
Merge remote-tracking branch 'origin/master' into next
2020-06-06 00:58:24 +02:00
Jeromy
73d928751d
disallow sourcing randomness from future epochs
2020-06-05 15:12:13 -07:00
Łukasz Magiera
3f81ff3507
Update specs-actors
2020-06-05 22:06:11 +02:00
Jeromy
51f1712564
add a simple semaphore to batch verify seals
2020-06-05 10:47:49 -07:00
Jakub Sztandera
7bee5b3abc
Merge remote-tracking branch 'origin/master' into next
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-05 00:33:43 +02:00
Aayush Rajasekaran
656b285195
Bugfix: Begin walkback when lookback target's height is too low
2020-06-04 18:17:54 -04:00
whyrusleeping
86083531c6
a couple bugfixes
2020-06-04 18:17:54 -04:00
Jeromy
c01f70105f
implement chain index to make lookbacks faster
2020-06-04 18:17:54 -04:00
Łukasz Magiera
f9f0d86ddf
Merge pull request #1913 from acruikshank/feat/1853-confirmations-in-StateWaitMsg2
...
Add confidence and timeout to message wait
2020-06-04 23:23:15 +02:00
acruikshank
ce33074626
go fmt
2020-06-03 22:30:09 -04:00
Jeromy
cd817906b2
handle sourcing randomness from a future block
2020-06-03 18:30:43 -07:00
acruikshank
04f0130530
remove timeout
2020-06-03 17:42:06 -04:00
acruikshank
5574e4f11b
add confidence and timeout to message wait
2020-06-03 15:38:37 -04:00
Aayush Rajasekaran
4b01b666f6
Bugfix: searchback for a message should stop if we reach sender nonce of 0
2020-06-03 14:08:05 -04:00
Jeromy
2fdcf5347b
reuse GetTipsetByHeight in GetRandomness
2020-06-02 17:35:23 -07:00
Jakub Sztandera
673a972fe9
Merge remote-tracking branch 'origin/master' into next
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-02 22:49:27 +02:00
Jeromy
9b867a221a
add subcall timing to compute state output
2020-06-02 12:53:24 -07:00
Jakub Sztandera
22851df145
Undo change in events_test
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-02 18:46:43 +02:00
Jakub Sztandera
96ade5f2dd
Cleanup more lint warnings
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-02 18:38:41 +02:00
Jakub Sztandera
5605aae269
Fix even more lint warnings
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-02 16:29:39 +02:00
Łukasz Magiera
c73326e96d
fsrepo: Use LevelDB for metadata datastore
2020-06-01 20:13:07 +02:00
Aayush Rajasekaran
7dd25c3ac5
Correctly handle transfers with sender = receiver
2020-05-29 12:15:41 -04:00
Jakub Sztandera
241c3fa673
Merge pull request #1869 from filecoin-project/feat/drand-pubsub
...
Add pubsub support to drand beacon
2020-05-29 18:06:38 +02:00
Łukasz Magiera
785eeb1eee
Merge pull request #1850 from filecoin-project/chore/lint
...
Cleanup many lint warnings
2020-05-29 18:06:06 +02:00
Jakub Sztandera
30d82ba962
Explicity Watch for randomness
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-05-29 17:55:24 +02:00
Jakub Sztandera
71eb41b9aa
Add pubsub support to drand beacon
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-05-29 17:55:17 +02:00
Jeromy
e2a554c2e6
update specs actors to version with batch porep verification
2020-05-28 13:19:18 -07:00
frrist
9f8ecb0ac4
update chain-validation
...
- has new syscalls
2020-05-28 22:11:49 +02:00
frrist
be1bbe88b0
update chain-val syscalls interface
2020-05-28 22:11:49 +02:00
Jakub Sztandera
d6615b6286
Cleanup many lint warnings
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-05-27 22:53:20 +02:00
Jakub Sztandera
4604b60fb1
Remove drand on miner side, MinerGetBaseInfo provides the same info
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-05-27 20:24:26 +02:00
Jakub Sztandera
3f9cde28fc
Update go-log, reduce drand entry log level, add TAG env for dev scripts
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-05-27 16:19:21 +02:00
Jakub Sztandera
218b2b82c1
Update drand chain info
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-05-27 14:09:04 +02:00
Jakub Sztandera
b06b0147a9
Switch to new drand client
...
This is a preview of a change to new drand client.
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-05-27 13:52:33 +02:00
frrist
8ce6921b18
update chain-validation
...
- has new syscalls
2020-05-26 10:51:19 -07:00
frrist
c8f28103f3
update chain-val syscalls interface
2020-05-26 10:49:39 -07:00
Łukasz Magiera
9089aadbbf
Merge pull request #1821 from filecoin-project/deps/update-ffi
...
update to latest ffi
2020-05-26 19:34:02 +02:00
Jeromy
646800b8a8
update to latest ffi
2020-05-22 09:26:14 -07:00
vyzo
cc98117df2
log block validation time
2020-05-22 17:21:37 +03:00
Łukasz Magiera
ae60001dcc
post: Handle Recovering sectors
2020-05-20 18:41:20 +02:00
frrist
9165f14693
feedback: fatal errors in vm.transfer
2020-05-18 12:00:52 -07:00
frrist
9305eca97c
don't ignore transfer error in delete actor
2020-05-18 12:00:52 -07:00
frrist
0c2e4e2d4f
return correct exitcodes from vm transfer
2020-05-18 12:00:52 -07:00
Łukasz Magiera
59725b3af3
Merge pull request #1784 from filecoin-project/feat/update-serialization-vectors
...
update serialization vectors
2020-05-18 20:34:44 +02:00
Jeromy
e6f3b79b23
update serialization vectors
2020-05-18 11:02:34 -07:00
Aayush Rajasekaran
5220a61fc5
Add an interop test for block header serialisation
2020-05-16 17:27:04 -04:00
Łukasz Magiera
5c73602d24
Merge pull request #1757 from filecoin-project/feat/faster-mpool-add
...
cache signatures, and dont check them in a lock
2020-05-15 20:27:31 +02:00
Whyrusleeping
70657e35ba
Merge pull request #1708 from filecoin-project/feat/block-validator
...
Improved pubsub block validator
2020-05-15 11:26:26 -07:00
Jeromy
13fc3f2f54
remove stress test (not really a real test)
2020-05-15 11:00:13 -07:00
Jeromy
33ec4d332b
cache signatures, and dont check them in a lock
2020-05-15 10:56:38 -07:00
Łukasz Magiera
b90666b293
miner: optimize SelectMessages
2020-05-15 19:30:31 +02:00
Jeromy
88fa9726cc
use chainmsg type instead of unsigned message for gas price checking
2020-05-14 12:44:26 -07:00
Jeromy
881b0517b1
reuse logic between message selection and validation
2020-05-14 12:29:11 -07:00
Aayush Rajasekaran
2e74e1d2ae
Don't assert params must be empty for Methodnum = 0
2020-05-14 15:10:07 -04:00
vyzo
81bc159b3e
cache successful block signature validation
2020-05-14 20:48:40 +03:00
vyzo
50e05ae1ba
use sigs.CheckBlockSignature
2020-05-14 20:48:40 +03:00
vyzo
432c69c616
update message validator to provide rejection signal
2020-05-14 20:48:40 +03:00
vyzo
e714294273
initialize map
2020-05-14 20:48:19 +03:00
vyzo
c3a144bcb6
flesh out signature validation logic
2020-05-14 20:48:19 +03:00
vyzo
dd86a289ce
cache miner worker keys
2020-05-14 20:48:19 +03:00
vyzo
6e0dac06f4
utility to retrieve miner worker key from the chain
2020-05-14 20:48:19 +03:00
vyzo
5bd0e92068
remove source flagging from bogus CID blocks
...
it's ineffective.
2020-05-14 20:48:19 +03:00
Jeromy
b5cb1fe1e0
some minor cleanup of data verification for preseals
2020-05-13 21:00:32 -07:00
Jeromy
50fae56baf
Verify data for presealed data
2020-05-13 19:35:44 -07:00
Jeromy
a9689d8345
set verifreg root key
2020-05-13 17:04:08 -07:00
Łukasz Magiera
4e13d284b7
events: Fix revert+apply of msg execution, but not the message
2020-05-14 00:48:36 +02:00
hannahhoward
bbd2fbc434
test(events): add test to demo issue
2020-05-13 12:10:56 -07:00
Jeromy
1d8c8b9a8e
check gas limits on messages more places
2020-05-12 22:36:43 -07:00
Łukasz Magiera
4c64f0ca11
sync: enforce message gas limits
2020-05-13 03:36:56 +02:00
Aayush Rajasekaran
aec168e05f
Update specs-actors, re-enable full chain validation
2020-05-12 19:52:33 -04:00
Whyrusleeping
686c92ba02
Merge pull request #1713 from filecoin-project/feat/hack-reward-initial-value
...
hack in an initial value for LastPerEpochReward for the genesis block
2020-05-12 16:39:48 -07:00
Jeromy
141c77e17e
hack in an initial value for LastPerEpochReward for the genesis block
2020-05-12 16:32:54 -07:00
frrist
5726c4bd30
construct cron actor state correctly
2020-05-12 16:12:28 -07:00
Łukasz Magiera
9597e4c501
Merge pull request #1675 from filecoin-project/frrist/puppet-actor
...
update chain-validation and add puppet actor
2020-05-12 20:20:00 +02:00
Aayush Rajasekaran
46fb5f8602
update CV, skip nested sends test
2020-05-12 14:14:00 -04:00
Łukasz Magiera
ba389598ee
Cleanup build package
2020-05-12 19:59:28 +02:00
Łukasz Magiera
741cfb7f00
Merge branch 'feat/specs-actors-v0.5' into frrist/puppet-actor
2020-05-12 19:04:04 +02:00
Łukasz Magiera
6056a52978
Update specs-actors to pre v0.5
2020-05-12 18:58:43 +02:00
Łukasz Magiera
4ea021d151
Merge pull request #1701 from filecoin-project/asr/syncvalidity
...
Message validation changes
2020-05-12 13:48:33 +02:00
Łukasz Magiera
6712560779
fix import ordering
2020-05-12 13:48:09 +02:00
Aayush Rajasekaran
6bf2dcd97c
Message validation changes
2020-05-11 21:54:44 -04:00
Łukasz Magiera
ec83b9cf7c
Fix tests post specs-actors update
2020-05-11 23:26:33 +02:00
frrist
f73366630f
add puppet actor to vm invoker in driver
2020-05-11 11:48:55 -07:00
Łukasz Magiera
e4cb28a310
Merge pull request #1694 from filecoin-project/fix/nil-protections
...
add some simple sanity checking to incoming blocks in the syncer
2020-05-08 20:26:50 +02:00
Jeromy
da73b62074
that doesnt belong there, really
2020-05-08 11:18:01 -07:00
Jeromy
d415aa779c
also check bls aggregate signature nilness
2020-05-08 11:07:57 -07:00
Jeromy
f8c15e2d2d
more checks in sync
2020-05-08 11:06:47 -07:00
Jeromy
8a69467982
add some simple sanity checking to incoming blocks in the syncer
2020-05-08 10:59:18 -07:00
Łukasz Magiera
1ade0e7b92
events: Fix called with confidence on null round
2020-05-08 10:31:23 +02:00
hannahhoward
e5a0252126
test(events): add test to repo issue
...
Add a test that shows that the called function is never hit above confidence if the scheduled
trigger is at a null tipset
2020-05-07 22:07:23 -07:00
Aayush Rajasekaran
dd79c66d41
Update and re-enable chain-validation
2020-05-06 21:44:09 -04:00
Whyrusleeping
97130684a2
Merge pull request #1680 from filecoin-project/deps/faster-publish-deals
...
update to specs-actors code with faster publish deals
2020-05-06 14:45:17 -07:00
Aayush Rajasekaran
187e386740
Bugfix: Correctly transfer gas when failing to charge for retValue
2020-05-06 16:53:32 -04:00
Jeromy
fa59cdc2ad
update to specs-actors code with faster publish deals
2020-05-05 17:06:32 -07:00
Łukasz Magiera
523a7a9d8d
Merge pull request #1670 from filecoin-project/feat/update-markets-0.2.0
...
Update go-fil-markets
2020-05-06 01:45:33 +02:00
Jeromy
66cafc7c71
fake signatures when constructing genesis state
2020-05-05 14:36:39 -07:00
Aayush Rajasekaran
8a9862bdb4
The VerifySig syscall should verify sigs
2020-05-05 15:26:34 -04:00
Whyrusleeping
1cd932fedd
Merge pull request #1661 from filecoin-project/feat/better-pubsub-integration
...
Improved pubsub integration
2020-05-05 10:41:51 -07:00
Jeromy
74510adaaa
add flag to choose what to do when looking back tipsets in null rounds
2020-05-05 10:06:05 -07:00
vyzo
eb24baa70c
use go-libp2p-core/peer instead of the deprecated alias, try to pacify the silly linter
2020-05-05 17:26:59 +03:00
vyzo
4e5179557d
flag block source when messages cannot be retrieved
2020-05-05 16:49:43 +03:00
vyzo
5824714cdc
use extended validator interface
2020-05-05 16:35:03 +03:00
hannahhoward
a9866c757e
feat(deps): update go-fil-markets
...
Update to latest 0.2.0 release of go-fil-markets with less-blocking node io
2020-05-04 18:36:51 -07:00
Jeromy
a553d438c0
dont override exit codes for actor creation failure
2020-05-04 16:31:26 -07:00
Jeromy
d7af5c67e9
update to latest cbor-gen
2020-05-04 15:19:48 -07:00
Jeromy
da72dfae3d
block header changed, updating field indexes to match
2020-05-04 12:09:39 -07:00
Aayush Rajasekaran
c196570dd8
Use blake2b, instead of sha256, for ticket creation and verification
2020-05-01 22:43:36 -04:00
Jeromy
be2a357102
winning post wants the actual epoch of the block, not the previous
2020-05-01 12:42:59 -07:00
Łukasz Magiera
d9acd484c0
storageminer: Improve CLI UX
2020-05-01 14:06:19 +02:00
Aayush Rajasekaran
897b269139
Test to demonstrate HAMT issue
2020-04-30 20:54:41 -04:00
Jeromy
bee25d221f
fix mining base randomness
2020-04-30 15:11:14 -07:00
Łukasz Magiera
4d51f9f700
Merge pull request #1647 from filecoin-project/feat/this-weeks-randomness-changes-2
...
fix winning post inputs
2020-04-30 22:30:40 +02:00
Jeromy
c4852e04c9
Use miner address in randomness mixing
2020-04-30 13:21:46 -07:00
Aayush Rajasekaran
441734647d
Update hamt
2020-04-30 16:11:23 -04:00
Łukasz Magiera
a1a2bf1a0e
Merge pull request #1643 from filecoin-project/asr/createactor
...
some create actor changes
2020-04-30 21:34:28 +02:00
Łukasz Magiera
ed500dbbdf
Merge remote-tracking branch 'origin/testnet/3' into asr/createactor
2020-04-30 21:29:04 +02:00
Jeromy
6caf725e14
fix race condition, 'thundering herd'-like issue, and add logging
2020-04-30 11:58:21 -07:00
Whyrusleeping
f18f6bb994
Merge pull request #1642 from filecoin-project/deps/update-drand
...
Update drand to v0.8.1
2020-04-30 11:47:26 -07:00
Jeromy
931a862abc
remove usage of previous round in beacon entries
2020-04-30 11:39:37 -07:00
Jeromy
4b3cc2ca7e
fix winning post inputs
2020-04-30 11:27:22 -07:00
Aayush Rajasekaran
a047e158ed
Add some validity checks to runtime.CreateActor()
2020-04-30 14:21:29 -04:00
Aayush Rajasekaran
bd1ac4d91b
Only charge for actor creation after making a meaningful state change
2020-04-30 14:18:26 -04:00
Travis Person
59dcbe93a4
Update drand to v0.8.1
2020-04-30 11:07:00 -07:00
Aayush Rajasekaran
d9a1d912fd
Elevate an actor construction fail-case to fatal
2020-04-30 13:46:33 -04:00
Whyrusleeping
f16ae9dffb
Merge pull request #1638 from filecoin-project/frrist/fix-lack-gas-retval
...
fix: insufficient gas remaining to cover retval
2020-04-30 10:20:17 -07:00
Travis Person
a29f19e482
New drand network
2020-04-30 04:55:53 +00:00
Jeromy
d73b369fa5
implement latest changes to randomness
2020-04-29 16:50:45 -07:00
frrist
c66415ae4c
fix: insufficient gas remaining to cover retval
...
proceed as in the case of method execution failure.
2020-04-29 16:38:34 -07:00
Łukasz Magiera
89b19af43f
specs-actors v0.3
2020-04-29 20:06:05 +02:00
Aayush Rajasekaran
cf8691ed87
update chain validation
2020-04-28 20:31:41 -04:00
Jeromy
eb4f4675a5
add version field to message type
2020-04-28 19:12:52 -04:00
Jeromy
f186e1a4f7
use other drand server for now
2020-04-28 15:10:12 -07:00
Whyrusleeping
cd5cbcfe4f
Merge pull request #1627 from filecoin-project/fix/safe-actor-serialization
...
vm: Don't treat actor state serialization errors as fatal
2020-04-28 10:50:53 -07:00
Łukasz Magiera
9dcb42328e
gofmt
2020-04-28 19:27:13 +02:00
Łukasz Magiera
c760a88c22
vm: don't treat actor state serialization errors as fatal
2020-04-28 15:21:31 +02:00
Aayush Rajasekaran
5900d765fd
caller must be validated exactly once
2020-04-28 00:07:47 -04:00
Whyrusleeping
e65d293ba4
Merge pull request #1607 from filecoin-project/feat/chainwatch-updates
...
chainwatch: Record drand entries
2020-04-27 16:23:47 -07:00
Aayush Rajasekaran
e46c4652a5
Forbid internal message in State Transaction()
2020-04-25 02:01:26 -04:00
Aayush Rajasekaran
832657edfb
Eliminate use of SysErrInternal, some interop changes
2020-04-25 01:55:59 -04:00
Łukasz Magiera
e38484a109
Merge remote-tracking branch 'origin/testnet/3' into feat/chainwatch-updates
2020-04-25 00:27:59 +02:00
Łukasz Magiera
0522af155d
chainwatch: Record drand entries
2020-04-25 00:25:33 +02:00
Frrist
0f0589bcf5
Update validation driver to match latest in chain-validation ( #1532 )
...
* update driver to match new chain-validation interfaces
* update chain-validation
* update filecoin-ffi
* gofmt
* update chain-validation again
2020-04-24 15:08:16 -07:00
Łukasz Magiera
db2e1fc2c4
Merge pull request #1591 from filecoin-project/feat/import-analyze
...
add command to analyze import bench output
2020-04-24 02:14:49 +02:00
Jeromy
7ee42e61d5
add command to analyze import bench output
2020-04-23 16:48:54 -07:00
Łukasz Magiera
da7db5fa98
Merge remote-tracking branch 'origin/testnet/3' into feat/check-deps
2020-04-24 00:59:15 +02:00
Jeromy
8ee296d130
fix tests
2020-04-23 15:53:24 -07:00
Łukasz Magiera
96f9d58066
Merge pull request #1575 from filecoin-project/feat/estimate-gas-price-api
...
add an api for estimating gas prices
2020-04-24 00:47:27 +02:00
Jeromy
ef1d485c6e
move head change type out of chainstore package
2020-04-23 15:28:59 -07:00
Łukasz Magiera
c137b0cf73
Merge remote-tracking branch 'origin/testnet/3' into feat/newminer
2020-04-23 23:53:23 +02:00
Łukasz Magiera
86e7f5914b
testing: test 2-miner mining
2020-04-23 23:20:02 +02:00
Whyrusleeping
faa9002cce
working on sector pledge requirements after specs-actors 1.0.0 ( #1584 )
...
* WIP: working on sector pledge requirements after specs-actors 1.0.0
* update storage-fsm with pledge collateral logic
* Set bigger balances for miners
* Return only additional required pledge
* split collateral methods into two methods
Co-authored-by: Łukasz Magiera <magik6k@gmail.com>
2020-04-23 12:39:34 -07:00
Jeromy
1d5059c281
add tipsetkey to estimate gas api
2020-04-22 15:37:59 -07:00
Jeromy
7e7caa8859
more expressive estimate gas api
2020-04-22 15:28:51 -07:00
Jeromy
2a97045317
add an api for estimating gas prices
2020-04-22 09:37:38 -07:00
diwufeiwen
d873d8489d
Update miners.go
...
Remove code that does n’t make sense
2020-04-22 10:00:57 +08:00
Łukasz Magiera
9f9ae155e3
windowed post: Review cleanup
2020-04-21 23:38:33 +02:00
Łukasz Magiera
24c764c91e
Don't print QAPower as bytes
2020-04-21 21:46:50 +02:00
Łukasz Magiera
f10eed3ae3
genesis: Setup verifier registry
2020-04-21 20:25:43 +02:00
Łukasz Magiera
9923c909c1
Merge remote-tracking branch 'origin/testnet/3' into feat/windowed-post
2020-04-21 19:28:00 +02:00
Łukasz Magiera
c406b875fa
gofmt, mod tidy
2020-04-21 19:23:49 +02:00
Łukasz Magiera
8be9494672
windowed post: Get correct sector set
2020-04-21 19:22:53 +02:00
Łukasz Magiera
f43ce74604
Update specs-actors
2020-04-21 16:32:17 +02:00
Łukasz Magiera
00eb0e6378
genesis: Add sectors to NewSectors set
2020-04-21 14:36:54 +02:00
Łukasz Magiera
ecc38d1bd8
sync: env var to fix drand
2020-04-20 20:33:53 +02:00
Łukasz Magiera
d99f40797e
sync: env var to fix drand
2020-04-20 19:43:02 +02:00
Łukasz Magiera
6dd2f5369e
genesis: Fix importing 8k+ deals
2020-04-20 15:54:06 +02:00
Łukasz Magiera
f11b1bbbeb
mpool: get nonce for correct address
2020-04-18 02:25:43 +02:00
Jeromy
91f56742c4
Use lookback to get sector set and power for miners
2020-04-17 16:44:18 -07:00
Łukasz Magiera
3b7ae0d6d9
mod tidy, gofmt
2020-04-18 00:02:43 +02:00
Łukasz Magiera
712e2683d6
miner: proving info commands
2020-04-18 00:02:18 +02:00
Jeromy
24b7661837
fix up some tests
2020-04-17 13:44:13 -07:00
Łukasz Magiera
e6270e4291
Update fsm; get sectorset form correct ts
2020-04-17 21:49:32 +02:00
Łukasz Magiera
a40872f74d
Merge pull request #1554 from filecoin-project/feat/increase-gen-gas
...
increase gas limit during genesis generation
2020-04-17 19:54:55 +02:00
Łukasz Magiera
8e13920e7b
cbor-gen
2020-04-17 19:53:09 +02:00
Łukasz Magiera
93b2b6d65d
Merge branch 'testnet/3' into feat/windowed-post
2020-04-17 18:38:20 +02:00
Łukasz Magiera
bab352fb44
Wireup WinningPost validation
2020-04-17 16:47:19 +02:00
Jeromy
708988244d
WIP: working on winning post integration
2020-04-16 22:39:55 -07:00
Jeromy
4153f128ef
a more betterer supply impl
2020-04-16 16:03:38 -07:00
Łukasz Magiera
706c0b8d3a
Stub syscalls.TotalFilCircSupply
2020-04-17 00:19:54 +02:00
Łukasz Magiera
918b759d03
mpool: Fix PushWithNonce for ID addresses
2020-04-16 23:06:31 +02:00
Łukasz Magiera
50a8b6a184
Update GetMinerSlashed
2020-04-16 22:52:40 +02:00
Whyrusleeping
0db5fc422a
Merge pull request #1534 from filecoin-project/patch/syscalls
...
VerifyConsensusFault syscall impl
2020-04-16 13:33:58 -07:00
Henri S
8594af970f
fix typo:
2020-04-16 15:52:49 -04:00
Aayush Rajasekaran
6a8e4bf87e
Lower a log level
2020-04-16 15:34:01 -04:00
Aayush Rajasekaran
14ad808a00
Remove unused fields from VM
2020-04-16 15:34:01 -04:00
Łukasz Magiera
afdfc8807d
api: Single method for static miner info
2020-04-16 19:36:36 +02:00
Łukasz Magiera
8338be3a6e
Fix genesis creation
2020-04-16 19:17:56 +02:00
Łukasz Magiera
98f3cab24e
Update specs-actors
2020-04-16 18:41:45 +02:00
Łukasz Magiera
246a9f0e45
gofmt
2020-04-15 22:41:20 +02:00
Łukasz Magiera
85993848be
bring back api.StateMinerProvingSet
2020-04-15 22:40:46 +02:00
Łukasz Magiera
0336b32fcd
windowpost: Wire up challenge generation
2020-04-15 22:22:58 +02:00
Travis Person
16347270e0
increase gas limit during genesis generation
2020-04-15 20:09:33 +00:00
Łukasz Magiera
149bb56b8e
wip updates to sector set handling
2020-04-15 21:59:11 +02:00
Jakub Sztandera
56eaf143db
fix lint
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-15 16:37:03 +02:00
Jakub Sztandera
08e74a90f9
Add missing files
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-15 16:13:20 +02:00
Jeromy
05536042f9
drop outdated comment
2020-04-14 16:37:10 -07:00
Jeromy
4e6839b5ef
some small cleanup
2020-04-14 15:13:52 -07:00
Jakub Sztandera
0feab0aad4
Bake drand public key into build params
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-14 22:34:44 +02:00
Jakub Sztandera
0c5e3e2533
Make tests use mock beacon
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-14 20:41:05 +02:00
Jakub Sztandera
eb501f7290
Cache more
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-14 19:55:53 +02:00
Jakub Sztandera
5ab9636365
Call VerifyBeacon, hack around genesis
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-14 16:52:18 +02:00
Jakub Sztandera
624dd7d2ce
Verify PrevRound too
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-14 16:18:34 +02:00
Jakub Sztandera
3e976fd74b
Make tests pass
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-14 16:09:11 +02:00
Jeromy
674be39af1
real drand network integration
2020-04-13 20:06:10 -07:00
Łukasz Magiera
bb3789b130
Fix ADT uses
2020-04-13 23:06:11 +02:00
Łukasz Magiera
2db9c24817
genesis: Update power state construction
2020-04-13 22:41:05 +02:00
Henri S
a4cdfe89fd
fix parent grinding check
2020-04-13 15:55:53 -04:00
Henri S
23dc776bd1
finalize logic, still need to import appropriate fields to the shim
2020-04-13 15:55:53 -04:00
Henri S
aa5cec39ca
first stab
2020-04-13 15:55:53 -04:00
Łukasz Magiera
704978a6ba
genesis: Set ssize in VerifyDealsOnSectorProveCommitParams
2020-04-11 01:46:55 +02:00
Łukasz Magiera
a2554952d1
Some electionPoSt -> winningPoSt renaming
2020-04-11 00:22:45 +02:00
Łukasz Magiera
613e61222b
mostly wire up WindowedPoSt
2020-04-10 23:07:18 +02:00
Łukasz Magiera
1c75bf30ac
genesis: Try updating for QA power
2020-04-10 22:04:04 +02:00
Łukasz Magiera
072dd8b744
Merge remote-tracking branch 'origin/testnet/3' into feat/windowed-post
2020-04-10 20:38:25 +02:00
Łukasz Magiera
0f0015f45c
Merge pull request #1520 from filecoin-project/feat/graphsync-chainsync-extension
...
Update to latest go-fil-markets w/ enhanced Graphsync
2020-04-10 20:27:05 +02:00
Łukasz Magiera
b0fe8b8b4c
v25: get bench to almost work
2020-04-10 14:19:06 +02:00
Łukasz Magiera
70d654e4a6
Merge pull request #1527 from filecoin-project/feat/drand
...
Initial randomness beacon implementation
2020-04-09 19:48:09 +02:00
Jeromy
09b013b7a5
close resp chan
2020-04-09 10:35:43 -07:00
Jeromy
ac271b021d
finish addressing review
2020-04-09 10:13:09 -07:00
Jakub Sztandera
7ee6388686
Make drand build
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-09 14:39:51 +02:00
Jeromy
1a3ab63e47
WIP: drand client integration
2020-04-08 19:55:17 -07:00
Jeromy
c5c18659a4
address some review
2020-04-08 17:24:10 -07:00
Jeromy
ef6fb1b756
rename beacon to randombeacon
2020-04-08 16:10:08 -07:00
Aayush Rajasekaran
17e9feb633
Sever the API's dependency on VM
2020-04-08 18:27:31 -04:00
Jakub Sztandera
1bd28bdb6a
Fix lint errors
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-08 21:37:04 +02:00
Jakub Sztandera
661d373fa2
Fix blockheader tests
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-08 21:27:55 +02:00
Jakub Sztandera
d71ba5039b
Merge branch 'feat/drand' of github.com:filecoin-project/lotus into feat/drand
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-08 21:08:35 +02:00
Jakub Sztandera
ce4978d8c3
Reintroduce correct ticket randomness alongside ElectionProof
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-08 21:06:41 +02:00
Jeromy
be85f2aff7
handle beacon gaps
2020-04-08 10:49:50 -07:00
Jakub Sztandera
9a17beba9e
Skip block header test vectors
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-08 18:48:47 +02:00
Jakub Sztandera
f1c890ca54
Tests pass
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-08 18:31:16 +02:00
Jeromy
8e0ca306d2
more wiring up of drandomness
2020-04-08 08:11:42 -07:00
hannahhoward
00cd89750d
feat(deps): update fil-markets, graphsync
...
Updates dependencies for graphsync, fil-markets, data-transfer. Moves to new graphsync blockstore
swapping capabilities, and also locks down graphsync impl so it does not accept arbitrary requests
2020-04-07 23:25:29 -07:00
Jeromy
056284c00b
wip: chain sync winner check
2020-04-07 15:54:01 -07:00
Jakub Sztandera
9fd1b95fd5
Fix build errors
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-07 15:32:23 -07:00
Jakub Sztandera
9c250f24fa
Nex wip
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-07 15:32:23 -07:00
Jakub Sztandera
afdb1db529
drand wip
...
,
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-07 15:32:23 -07:00
Jeromy
7075eaba26
WIP: random beacon interface
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-07 15:32:23 -07:00
Łukasz Magiera
086a66efc9
Merge pull request #1517 from filecoin-project/feat/lotus-agnostic-node-interface
...
remove lotus types from sealing package in preparation for extraction
2020-04-07 00:42:30 +02:00
Łukasz Magiera
4ee8254133
Merge pull request #1510 from filecoin-project/feat/fsm-updates
...
FSM Updates
2020-04-06 23:11:46 +02:00
laser
2f4732760a
update CBOR encoders/decoders
2020-04-06 13:35:29 -07:00
Jeromy
3ad16c58d7
cache address resolutions in state tree
2020-04-06 12:32:22 -07:00
Łukasz Magiera
68fa9f20c3
Merge pull request #1511 from filecoin-project/fix/runtime-exit-edge-cases
...
handle some runtime error edge cases
2020-04-06 20:34:22 +02:00
Łukasz Magiera
f05be81275
fsm: Get correct interactive randomness if it lands on a nullblock
2020-04-04 04:57:05 +02:00
Jeromy
bb6e8de056
cache address resolutions in state tree
2020-04-03 16:26:52 -07:00
Jeromy
ab51501849
remove todo
2020-04-03 15:50:52 -07:00
Jeromy
2d5becaaba
further removals
2020-04-03 15:05:59 -07:00
Jeromy
4c6fa1b2c0
handle some runtime error edge cases
2020-04-03 14:38:11 -07:00
Łukasz Magiera
a1b35aa9d5
Change api.SectorState to a string
2020-04-03 18:29:31 +02:00
Jeromy
7a475d5ca5
drop outdated comment
2020-04-02 18:52:18 -07:00
Jeromy
89b15c03cf
nil out layers when dropping to allow for GC
2020-04-02 18:20:49 -07:00
Jeromy
212c346c21
avoid flushing disk when doing state tree snapshots
2020-04-02 17:18:25 -07:00
Łukasz Magiera
11777c5f24
Merge pull request #1502 from filecoin-project/feat/import-bench
...
add a command to lotus-bench to benchmark importing and validating
2020-04-03 01:30:12 +02:00
Jeromy
beaa3dffab
add a command to lotus-bench to benchmark importing and validating a chain
2020-04-02 16:18:38 -07:00
Jeromy
8a265a0e8d
use exitcode type from specs actors instead of byte
2020-04-02 11:24:38 -07:00
whyrusleeping
aa23266c6f
use gas used in block rewards
2020-04-01 21:16:16 -07:00
Jeromy
fe1d61b276
also use correct set when validating blocks
2020-04-01 18:39:38 -07:00
Jeromy
c55501024e
remove hacky bits
2020-04-01 18:25:58 -07:00
Jeromy
5b9ee1dea9
Add GetMiningBaseInfo api and use it for mining
2020-04-01 18:15:25 -07:00
Łukasz Magiera
f15eb8b172
Merge pull request #1487 from filecoin-project/fix/partial-sync-responses
...
properly handle partial sync responses
2020-04-02 00:03:25 +02:00
Łukasz Magiera
7ef08bfbdf
Merge pull request #1490 from filecoin-project/fix/charge-gas
...
Fix charge gas in case of overcharge
2020-04-01 23:00:28 +02:00
Jakub Sztandera
013f441658
Fix charge gas in case of overcharge
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-01 22:55:10 +02:00
Jakub Sztandera
d88c2f8a43
Add Replace by Fee
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-04-01 22:26:14 +02:00
Jeromy
27d57264d9
properly handle partial sync responses
2020-04-01 11:35:09 -07:00
Łukasz Magiera
f6c260c49f
Merge pull request #1484 from filecoin-project/fix/interop-improvements
...
several fixes and improvements while debugging interop
2020-04-01 17:51:42 +02:00
Łukasz Magiera
cdd97ce959
Revert ticket compare function to comparing vrf hashes
2020-04-01 17:44:51 +02:00
Jeromy
417d434973
several fixes and improvements while debugging interop
2020-03-31 18:35:23 -07:00
Łukasz Magiera
13f2c21e1d
Get network name from genesis
2020-04-01 01:15:49 +02:00
Aayush Rajasekaran
8ec19812e3
Update chain-validation, enable state root validation
2020-03-31 03:09:42 -04:00
Łukasz Magiera
95ee1c1cde
Extract sector-storage
2020-03-28 01:32:39 +01:00
Łukasz Magiera
c66d3dfad7
sectorstorage: Untangle from lotus deps
2020-03-27 22:35:33 +01:00
Łukasz Magiera
de1f2be505
Merge pull request #1458 from filecoin-project/feat/merge-sectorbuilder
...
Merge sectorbuilder into sectorstorage
2020-03-27 18:53:58 +01:00
Jeromy
97a7b449e6
use charge gas safe in places we return errors
2020-03-27 10:11:21 -07:00
Jeromy
672956af5d
addressing review
2020-03-26 20:13:32 -07:00
Jeromy
1b50be09af
dont use fatal errors in the vm
2020-03-26 20:03:04 -07:00
Travis Person
59e77ba6c8
Merge pull request #1457 from filecoin-project/feat/exitcodes
...
Update to new sepcs actors, more debug
2020-03-26 17:54:25 -07:00
Travis Person
090261f304
Revert gas exhausted exit code to SysErrOutOfGas
2020-03-27 00:19:34 +00:00
Jakub Sztandera
06cfbf5742
Switch exitcodes
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-03-26 22:11:06 +01:00
Łukasz Magiera
e050e0307e
Cleanup after dropping sectorbuilder
2020-03-26 20:35:16 +01:00
Aayush Rajasekaran
dc5159ce74
Update chain-validation, make necessary changes
2020-03-26 06:41:02 -04:00
Aayush Rajasekaran
1e1d0676ae
Set system actor's initial state correctly
2020-03-26 06:38:45 -04:00
Łukasz Magiera
4be54a976c
Merge sectorbuilder into sectorstorage
2020-03-26 03:51:06 +01:00
Łukasz Magiera
6399499e9b
Fix sealing sectors with multiple pieces
2020-03-26 02:18:13 +01:00
Jakub Sztandera
edf03c9ba8
Use adt.Empty
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-03-26 02:00:25 +01:00
Jakub Sztandera
7a6eb723ad
Use correct epoch for vrf
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-03-26 01:33:35 +01:00
Jakub Sztandera
300c89f541
Update to new sepcs actors, more debug
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-03-26 01:02:13 +01:00
Jeromy
088d693eea
code review changes
2020-03-25 12:13:09 -07:00
Aayush Rajasekaran
60ec264470
enable gas validation
2020-03-25 08:25:03 -04:00
Aayush Rajasekaran
7b9872c473
don't skip any tests
2020-03-25 08:25:03 -04:00
Aayush Rajasekaran
ebcefa80e3
provide msg length to vm::ApplyMessage
2020-03-25 08:25:03 -04:00
Aayush Rajasekaran
c951e0cc83
do not reprocess duplicate messages in a block
2020-03-25 08:25:03 -04:00
Aayush Rajasekaran
3a0df321d1
actually create new bls keys
2020-03-25 08:25:03 -04:00
Aayush Rajasekaran
3896631a1c
Remove pre-execution validity checks on messages
2020-03-25 08:25:03 -04:00
Aayush Rajasekaran
490f85e690
Send implicit messages for block rewards, cron ticks, state calls, and genesis setup
2020-03-25 08:25:03 -04:00
Aayush Rajasekaran
ad15750be3
Charge sender no gas, and penalise miner for certain invalid messages
2020-03-25 08:25:03 -04:00
Aayush Rajasekaran
654f933d3f
set up builtin actors correctly for validation testing
2020-03-25 08:25:03 -04:00
Aayush Rajasekaran
09a46e5d80
fix some gas charge bugs, and make our new account actor creation follow GFC
2020-03-25 08:25:03 -04:00
Łukasz Magiera
201d0a4b19
Merge remote-tracking branch 'origin/testnet/3' into feat/new-workers
2020-03-25 01:02:23 +01:00
Whyrusleeping
60ea9e6ec8
Merge pull request #1426 from filecoin-project/asr/statewait
...
Re: #1412 : Add a non-blocking version of StateWaitMsg
2020-03-24 16:17:47 -07:00
Jeromy
ec0d0a51db
chain validation nil return values should be []byte{}
2020-03-24 13:09:04 -07:00
Łukasz Magiera
66a682b55d
Merge remote-tracking branch 'origin/testnet/3' into feat/new-workers
2020-03-24 19:09:02 +01:00
Aayush Rajasekaran
d350a9d415
Re: #1412 : Add a non-blocking version of StateWaitMsg
...
- This commit adds a new method called StateSearchMsg
- We can probably overhaul StateWaitMsg onto this new method at a later point in time
2020-03-24 06:43:15 -04:00
Aayush Rajasekaran
d5b1bfe197
only skip one test
2020-03-24 04:44:50 -04:00
Aayush Rajasekaran
df13cfa52b
Only resolve origin to pubkey address when creating a new account actor
2020-03-24 04:43:09 -04:00
Aayush Rajasekaran
753e8ff7f5
Award gas fees to miners correctly
2020-03-24 03:35:58 -04:00
Aayush Rajasekaran
9ccc02d664
Load actor states afresh before making state changes
...
- Not doing this is causing bugs when reverting, since the actor cache gets reset
2020-03-24 03:33:22 -04:00
Jeromy
14591e718d
skip tests so we can get this merged in
2020-03-23 18:52:39 -07:00
Jeromy
9e67bef4bd
drop balance checks in block validation
2020-03-23 18:50:58 -07:00
Jeromy
2228f13f99
a couple vm fixes
2020-03-23 18:50:58 -07:00
Jeromy
6fe245a278
use proper exitcodes for caller validation
2020-03-23 18:50:28 -07:00
Aayush Rajasekaran
066b755b6a
set up initial account state of new Secp accounts
2020-03-23 18:50:28 -07:00
Aayush Rajasekaran
72c6552b0b
Allow invocation of account actor methods
2020-03-23 18:50:28 -07:00
Aayush Rajasekaran
05d43af3fc
Only try to resolve origin address during top-level invocation
2020-03-23 18:50:28 -07:00
Jeromy
8bc4195b7a
WIP: updating and getting chainval tests passing
2020-03-23 18:50:18 -07:00
Whyrusleeping
d74ede5a79
Merge pull request #1428 from filecoin-project/feat/graphsync-fetching
...
WIP: integrate graphsync for chainsync requests
2020-03-23 18:47:17 -07:00
Jeromy
719cec13d5
prefer blocksync, fallback to graphsync
2020-03-23 13:46:15 -07:00
Łukasz Magiera
eeec5a1bba
Merge pull request #1274 from filecoin-project/feat/doc/actors
...
doc: add comments related to actor code review
2020-03-23 12:49:41 +01:00
Łukasz Magiera
5e4a7e54df
Rename agvmgr+sealmgr to sectorstorage
2020-03-23 12:47:10 +01:00
Jeromy
f1dbd35407
change genesis fields to match interop
2020-03-21 15:25:00 -07:00
Jeromy
f3781e8329
update and rerun cbor gen
2020-03-21 14:17:01 -07:00
whyrusleeping
9d7f19b950
some cleanup
2020-03-20 21:30:24 -07:00
hannahhoward
2e9a052f62
fix(chainsync): support longer graphsync fetches with loop
2020-03-20 21:30:24 -07:00
hannahhoward
34f755b2b9
feat(chainsync): fixes to make graphsync work for chain fetching
...
- store to chain blockstore (ok for now, since storage provider is a seperate process)
- simplify request fetching and processing
2020-03-20 21:30:24 -07:00
whyrusleeping
1076a1a89d
WIP: integrate graphsync for chainsync requests
2020-03-20 21:30:24 -07:00
Jeromy
6fcfd0a4f0
add a test to roundtrip export/import a chain
2020-03-20 18:22:24 -07:00
Jeromy
921f11db34
Rewrite chain export walker function to actually do the right thing
2020-03-20 17:18:57 -07:00
Łukasz Magiera
e6aa01653a
Merge remote-tracking branch 'origin/testnet/3' into feat/new-workers
2020-03-20 23:42:46 +01:00
Whyrusleeping
aad449f28a
Merge pull request #1425 from filecoin-project/fix/randomness-for-ec
...
use proper lookback, and proper serialization for randomness generation
2020-03-20 15:03:22 -07:00
Whyrusleeping
a3fd1d4b51
Merge pull request #1401 from filecoin-project/fix/nonce-miss-no-gas
...
Missmatching nonce does not charge gas
2020-03-20 14:56:33 -07:00
Whyrusleeping
0ca935e0b9
Merge pull request #1417 from filecoin-project/fix/sshot-after-gas
...
take snapshot after gas transfer so its not reverted on method failure
2020-03-20 14:16:54 -07:00
Whyrusleeping
f9bd0fb2ce
Merge pull request #1433 from filecoin-project/feat/serialization-vectors
...
Integrate updated serialization vectors as tests
2020-03-20 14:11:28 -07:00
whyrusleeping
84fd969710
take snapshot after gas transfer so its not reverted on method failure
2020-03-20 13:50:46 -07:00
Jakub Sztandera
4ba4de3379
Missmatching nonce does not charge gas
...
It should charge miner but we don't have that mechanism yet.
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-03-20 20:44:45 +01:00
Aayush Rajasekaran
ef288b8a6c
Calculate new actor addresses as per updated spec
2020-03-20 15:43:08 -04:00
whyrusleeping
438aac190f
use proper lookback, and proper serialization for randomness generation
2020-03-20 12:20:56 -07:00
Whyrusleeping
7b69697439
Merge pull request #1434 from filecoin-project/feat/more-gas
...
Rework gas charging
2020-03-20 12:18:18 -07:00
Whyrusleeping
9df4fce282
Merge pull request #1438 from filecoin-project/frrist/display-chainval-testname
...
print chain-validation test name when running
2020-03-20 12:03:53 -07:00
Aayush Rajasekaran
5e46c0b4e9
Use blake2b, not SHA, for VRFs
2020-03-20 11:23:22 -07:00
frrist
100fc47812
print chain-validation test name when running
...
- makes debugging easier
2020-03-20 10:35:59 -07:00
Jakub Sztandera
ac09a6432c
Skip failing tests, update chain-validation
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-03-20 18:21:13 +01:00
Jakub Sztandera
ae40654907
Rework gas charging
2020-03-20 03:26:40 -04:00
whyrusleeping
905fc968bf
Integrate updated serialization vectors as tests
2020-03-18 22:53:15 -07:00
Łukasz Magiera
1ed7779701
Merge remote-tracking branch 'origin/testnet/3' into feat/new-workers
2020-03-19 03:28:55 +01:00
whyrusleeping
1fb70fc0e0
add simple test for helping to test state tree interop
2020-03-18 17:23:59 -07:00
Lucas Molas
d21cb96ddb
doc: add comments related to actor code review
2020-03-18 16:43:58 -07:00
whyrusleeping
ddf1beac6c
change gas limit to be a normal int64
2020-03-18 13:45:37 -07:00
Aayush Rajasekaran
6fda3c877e
Re: #1302 : Refine invalid message filtering
...
- This commit slightly weakens the current invalid message check
- The behaviour is that if you can't add a message to your pool, you *probably* won't broadcast it to your peers
- The exceptions are that you will broadcast a message if you fail to validate it because nonce / balance lookup fails
- This commit also lowers the invalid message log to debug (to lessen the annoyance of several invalid messages coming in, and hopefully to prevent confusion among node operators)
2020-03-18 03:14:18 -04:00
Aayush Rajasekaran
993505b461
Enable full validation tests
2020-03-18 02:57:11 -04:00
Aayush Rajasekaran
f22f427cde
Put the correct error into ExecutionResult
2020-03-18 02:57:11 -04:00
Aayush Rajasekaran
51cf5d5f1b
New Actor Addresses should be generated as per spec
...
- The pubkey address address of the sender should be used, not the ID address
- We should use the internal callSeqNum as input (was hard-coded to zero)
- The external message nonce should be used, not the actor's nonce in the post-increment state
2020-03-18 02:57:11 -04:00
Łukasz Magiera
e6ec20b4ca
Merge branch 'testnet/3' into feat/new-workers
2020-03-13 17:58:13 +01:00
Frrist
7371274ea7
update chain-validation: adds miner workflow test ( #1403 )
...
* update chain-validation. adds miner workflow test
* replace real sealing with mocked impl
2020-03-12 10:22:45 -07:00
whyrusleeping
3d6577838c
move power deduction out of the loop
2020-03-11 00:29:17 -07:00
Whyrusleeping
9bad73b995
Merge pull request #1388 from filecoin-project/fix/nonce-before-gas
...
Check for correct nonce before taking gas
2020-03-10 23:58:28 -07:00
Whyrusleeping
d48d073bcf
Merge pull request #1394 from filecoin-project/fix/fallbackpost-finally
...
get fallback post running successfully!
2020-03-10 23:41:41 -07:00
whyrusleeping
16d087cce4
get fallback post running successfully!
2020-03-10 23:30:48 -07:00
Łukasz Magiera
eb61a36fd7
workers: RPC scaffolding
2020-03-11 02:58:02 +01:00
Whyrusleeping
65506376a4
Merge pull request #1390 from filecoin-project/fix/genesis-double-power-accounting
...
Don't double account for miner power when setting up genesis blocks
2020-03-10 18:56:47 -07:00
Whyrusleeping
61e5b05262
Merge pull request #1386 from filecoin-project/fix/replay-not-found
...
dont panic when replay fails to find a message
2020-03-10 15:52:40 -07:00
whyrusleeping
14f9724bc9
Don't double account for miner power when setting up genesis blocks
2020-03-10 15:42:41 -07:00
Jakub Sztandera
f3c4288311
Check for correct nonce before taking gas
...
Otherwise as a miner you are able to include an invalid message forever
and get whole GasLimit of gas from it every time.
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-03-10 21:14:50 +01:00
Jakub Sztandera
cc7d25394c
Less noisy mapool add
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-03-10 21:06:58 +01:00
whyrusleeping
baca881473
dont panic when replay fails to find a message
2020-03-10 12:44:50 -07:00
whyrusleeping
1beab85d61
Drop debug messages
2020-03-09 23:46:13 -07:00
Łukasz Magiera
a9dc2aa58b
Merge pull request #1375 from filecoin-project/feat/mpool-debug-future
...
mpool: add debug logs for future detection
2020-03-10 07:02:41 +01:00
whyrusleeping
bccec5af95
update to latest specs-actors
2020-03-09 22:43:43 -07:00
Travis Person
0fe55f81f6
mpool: add debug logs for future detection
2020-03-10 05:41:24 +00:00
Whyrusleeping
7b5e7178f4
Merge pull request #1369 from filecoin-project/fix/reward-ticket-count
...
pass ticket count into reward application message
2020-03-09 22:35:46 -07:00
whyrusleeping
85e17fa5b0
fix state cid accounting after 'Transaction' calls
2020-03-09 22:20:46 -07:00
whyrusleeping
114cb2d2aa
squash the spec shim and the vmcontext into the new runtime type
2020-03-09 21:44:29 -07:00
Łukasz Magiera
f3798f9d40
Merge pull request #1374 from filecoin-project/fix/state-power-json
...
make state power a pointer so it marshals properly
2020-03-09 22:48:53 +01:00
whyrusleeping
26ca72e252
make state power a pointer so it marshals properly
2020-03-09 14:41:57 -07:00
Łukasz Magiera
06d18484f6
Merge remote-tracking branch 'origin/master' into feat/update
2020-03-09 09:34:31 +01:00
whyrusleeping
f1ff55f8b6
pass ticket count into reward application message
2020-03-09 00:45:40 -07:00
Whyrusleeping
3a94d9d176
Merge pull request #1354 from filecoin-project/feat/state-compute-trace
...
implement compute state trace output
2020-03-08 21:22:40 -07:00
whyrusleeping
bf6948f8d6
update to latest specs-actors
2020-03-08 21:21:46 -07:00
whyrusleeping
4260cc38c9
implement compute state trace output
2020-03-08 20:07:25 -07:00
Łukasz Magiera
697ab30304
Merge pull request #1328 from filecoin-project/metrics/rework-default-view
...
remove high cardinality tags from metrics
2020-03-08 21:40:16 +01:00
whyrusleeping
24bf720a9a
Merge branch 'master' into testnet/3
2020-03-07 16:46:12 -08:00
whyrusleeping
34ad13fc22
fix initial reward actor balance
2020-03-06 17:33:24 -08:00
Aayush Rajasekaran
340afc3503
Add information about internal message executions to SimulationResult
...
- The VM now tracks a list of ExecutionResults to keep track of internal messages
2020-03-06 11:11:06 -08:00
Aayush Rajasekaran
2d63b007f2
Unify MethodCall and ReplayResults into SimulationResult
...
- Call and Replay now return the same type, which includes both Message and MessageReceipt
2020-03-06 11:10:40 -08:00
Łukasz Magiera
3cab8bd5d1
gofmt
2020-03-06 20:01:28 +01:00
Łukasz Magiera
e51fa5c9ac
libs: Use zerocomm from sectorbuilder
2020-03-06 19:50:41 +01:00
Whyrusleeping
05a95cace5
Merge pull request #1336 from filecoin-project/vet/some-go-vet-fixes
...
some go vet fixes
2020-03-06 00:11:13 -08:00
whyrusleeping
16096e2c71
some go vet fixes
2020-03-05 22:46:07 -08:00
Łukasz Magiera
7d3e16986c
sectorbuilder type updates
2020-03-06 06:38:59 +01:00
whyrusleeping
8a7f249aaa
update to latest specs-actors
2020-03-05 16:20:57 -08:00
Łukasz Magiera
1c052b7c81
Merge remote-tracking branch 'origin/testnet/3' into feat/4stage-seal
2020-03-06 00:59:12 +01:00
frrist
b8394c3573
update, you guessed it, chain-validation
2020-03-05 13:41:35 -08:00
frrist
00f5ee6064
add TODO for return value checking
2020-03-05 13:41:35 -08:00
frrist
f4b07a7293
enable multisig tests
2020-03-05 13:41:35 -08:00
frrist
a34a6c65e7
fix gas limit check in apply message
2020-03-05 13:41:35 -08:00
frrist
4e41479464
bls key deterministic, enable paych test
2020-03-05 13:41:35 -08:00
Frrist
e4728eb719
update chain-val with latest tests ( #1325 )
...
* update chain-val with latest tests
2020-03-05 13:39:28 -08:00
whyrusleeping
2cd06e3ea0
update to latest specs-actors
2020-03-05 13:02:33 -08:00
Łukasz Magiera
fa5bc3a5a9
Merge remote-tracking branch 'origin/testnet/3' into feat/4stage-seal
2020-03-05 20:20:47 +01:00
Adrian Lanzafame
d0c748460e
remove high cardinality tags from metrics
2020-03-05 19:47:20 +10:00
whyrusleeping
4e9e3f3dc3
make state tree snapshots properly stack based
2020-03-04 17:19:15 -08:00
whyrusleeping
5076b2b950
fix reward actor and block reward application
2020-03-04 13:21:24 -08:00
Łukasz Magiera
799ff17c7c
Merge remote-tracking branch 'origin/testnet/3' into feat/4stage-seal
2020-03-04 06:37:11 +01:00
Łukasz Magiera
1d3877fab3
sync: Use correct epost randomness
2020-03-04 06:32:33 +01:00
Łukasz Magiera
4e46d00eb6
Merge remote-tracking branch 'origin/testnet/3' into feat/4stage-seal
2020-03-04 04:01:13 +01:00
whyrusleeping
2be2891647
wire up lotus side of make deal for manual commP
2020-03-03 16:18:08 -08:00
Whyrusleeping
0025b3c1dc
Merge pull request #1300 from filecoin-project/frrist/chainval-integrate
...
implement chain-validation driver
2020-03-03 16:10:16 -08:00
whyrusleeping
0da2f81252
get most of the chain validation tests passing
2020-03-03 16:06:41 -08:00
frrist
1c864d1eef
fixs after rebase
2020-03-03 16:06:41 -08:00
whyrusleeping
8657b4698f
fix invoker tests
2020-03-03 16:06:41 -08:00
frrist
dfad346cff
add test skipper and update chain-validation
2020-03-03 16:06:41 -08:00
whyrusleeping
0f6c365411
Do proper shimming for chain validation library
2020-03-03 16:06:41 -08:00
frrist
bd91008462
clean up validation config
2020-03-03 16:06:41 -08:00
frrist
72132c851b
update chain-validation version for miner creation
2020-03-03 16:06:41 -08:00
frrist
0de43748f7
better test name
2020-03-03 16:06:41 -08:00
frrist
b60458d236
implement chain-validation driver
2020-03-03 16:06:41 -08:00
whyrusleeping
d6723935b9
fixup to match spec, move constants to common location
2020-03-03 15:48:25 -08:00
lanzafame
4f2baa8953
conform protocol ids to spec
...
Signed-off-by: lanzafame <adrianlanzafame92@gmail.com>
2020-03-03 11:34:43 +10:00
whyrusleeping
61fcbd1664
remove unnecessary cid casting
2020-03-01 20:38:18 -08:00
whyrusleeping
60b19c51ef
more misc fixes
2020-03-01 17:09:38 -08:00
Nate Walck
8283bb994a
Add block metrics to incoming pubsub validate funcs
2020-03-01 19:57:16 -05:00
Nate Walck
33af2409e8
Use head notif func for current node height, add pubsub metrics
2020-03-01 19:26:09 -05:00
Łukasz Magiera
f54a555aa8
Merge remote-tracking branch 'origin/testnet/3' into feat/4stage-seal
2020-02-29 03:21:01 +01:00
whyrusleeping
c7508a0512
self review fixes
2020-02-28 18:02:40 -08:00
whyrusleeping
1a07cb7bbf
a few more fixes
2020-02-28 17:12:47 -08:00
whyrusleeping
cf2eefdfbe
Fix up client storage deal matcher
2020-02-28 16:05:56 -08:00
whyrusleeping
713059275d
progress is made incrementally
2020-02-28 14:00:34 -08:00
whyrusleeping
5b657a2905
pass on proper sector types
2020-02-28 12:52:14 -08:00
whyrusleeping
0945d8725e
fixing miner logic to make more tests pass
2020-02-28 11:31:28 -08:00
Łukasz Magiera
2a1253e45a
types: Simplify Ticket.Equals
2020-02-28 11:31:28 -08:00
Henri S
96555aa74b
update to use VRF digest appropriately and simplify drawing rand past genesis
2020-02-28 11:31:28 -08:00
Łukasz Magiera
5a4f917c60
4-stage v23 lotus-bench
2020-02-28 19:06:59 +01:00
Nate Walck
353c5d8b12
Relocation opencensus metrics to its own package and add more node stats
2020-02-27 21:49:18 -05:00
whyrusleeping
00efd097c7
implement basic message filtering
2020-02-27 17:40:16 -08:00
Łukasz Magiera
4dc35285dd
Minimum sector size is now 2k
2020-02-28 01:48:34 +01:00
Łukasz Magiera
f83bbc2cbe
Regen cbor marshalers
2020-02-28 00:34:48 +01:00
whyrusleeping
df6e3e83bf
make it all build finally
2020-02-27 13:45:31 -08:00
whyrusleeping
6c12068fb7
more fixes for random garbage
2020-02-26 16:42:39 -08:00
whyrusleeping
767392332e
WIP: update sectorbuilder
2020-02-26 14:54:34 -08:00
Łukasz Magiera
cb09e48e8c
Some test fixes
2020-02-26 10:05:22 +01:00
Łukasz Magiera
0a9e0acc6f
types: Drop some redundant alias types
2020-02-25 22:09:22 +01:00
Łukasz Magiera
ae634ef7df
actors: Remove addrass aliases
2020-02-25 21:54:58 +01:00
Łukasz Magiera
cd10a3126b
actors: drop a bunch of type aliases
2020-02-25 21:35:15 +01:00
Łukasz Magiera
f1d9033194
Address some minor review nits
2020-02-25 21:25:52 +01:00
Łukasz Magiera
d787aa5007
Merge branch 'testnet/3' into feat/specs-actors
2020-02-24 18:32:02 +01:00
Łukasz Magiera
ba6d1091f2
pond: Fix node startup
2020-02-24 00:39:45 +01:00
Łukasz Magiera
1d417685d1
Fix Sealing in TestAPIDealFlow
2020-02-23 21:33:10 +01:00
Łukasz Magiera
917df9a5b8
More unified randomness handling
2020-02-23 21:00:47 +01:00
Łukasz Magiera
a82d156ccb
Deal flow fixes
2020-02-23 16:50:36 +01:00
whyrusleeping
97425ea1c9
fix some tests
2020-02-22 23:49:15 -08:00
Łukasz Magiera
226685dc1c
Implement committed capacity sectors
2020-02-23 01:47:47 +01:00
Łukasz Magiera
b8428423a1
get chain to runnable state
2020-02-22 14:10:46 +01:00
Łukasz Magiera
b12482df89
move peermgr, tracing into lib
2020-02-22 12:36:22 +01:00
Łukasz Magiera
18627e77ff
gofmt; mod tidy
2020-02-21 20:28:20 +01:00
Łukasz Magiera
4e98f2e438
some test fixes
2020-02-21 20:28:01 +01:00
Łukasz Magiera
d6dffed203
Fix genesis car generation
2020-02-21 20:27:29 +01:00
Łukasz Magiera
a6268f055d
storageminer: Update api interfaces
2020-02-21 18:43:44 +01:00
Łukasz Magiera
c744dc06c6
Fix implicit account creation
2020-02-21 18:13:50 +01:00
Łukasz Magiera
57c43183e6
update specs-actors
2020-02-21 17:57:40 +01:00
whyrusleeping
00d7bd1a77
chain/gen tests now pass!
2020-02-20 00:37:10 -08:00
Łukasz Magiera
69ec3c205a
Merge remote-tracking branch 'origin/master' into testnet/3
2020-02-19 22:10:14 +01:00
Łukasz Magiera
35d14788d3
stmgr: Fix GetPower
2020-02-19 21:39:10 +01:00
Łukasz Magiera
c69c9e62c2
stmgr: Correctly read sectorset
2020-02-19 21:34:21 +01:00
Łukasz Magiera
835e3d803f
vm: don't follow replica CIDs in copy
2020-02-19 20:39:00 +01:00
Łukasz Magiera
9c31f61db4
sectorset updates
2020-02-19 20:26:11 +01:00
Łukasz Magiera
3394645f7a
chainstore: Update weight function to use new actors
2020-02-19 18:55:59 +01:00
Łukasz Magiera
e9019c8bcc
Working Genesis Generator
2020-02-18 22:38:08 +01:00
Whyrusleeping
6afeb2e72b
Merge pull request #1268 from filecoin-project/feat/simple-spam-protection
...
basic gossip spam protection logic
2020-02-18 10:39:36 -08:00
whyrusleeping
6d0eec6395
working towards a working genesis generator
2020-02-17 23:15:30 -08:00
Aayush Rajasekaran
60970008c8
Re: #1250 : API methods should receive TipSetKeys, not TipSets, as input
2020-02-17 19:53:43 -05:00
Łukasz Magiera
038582ba44
vm: Fix getActorCode
2020-02-17 22:11:03 +01:00
Whyrusleeping
4750f32ab6
Merge pull request #1253 from filecoin-project/feat/bad-ts-cache-reasons
...
mark down reason for block inclusion in bad tipset cache
2020-02-17 12:20:20 -08:00
Łukasz Magiera
d0c158b019
genesis: Handle CreateMiner return correctly
2020-02-17 19:20:38 +01:00
Łukasz Magiera
140187dc2a
vm: Fix Commit
2020-02-17 19:00:20 +01:00
Łukasz Magiera
3e4ebd6c9d
actors: fix miner constructor
2020-02-17 18:19:06 +01:00
Łukasz Magiera
4ad63d9b63
update specs-actors; update GetRandomness
2020-02-17 09:46:12 +01:00
Łukasz Magiera
af8c379ac8
vm: More runtime methods
2020-02-17 09:19:54 +01:00
Łukasz Magiera
9f7bd983b3
vm: implement NewActorAddress
2020-02-17 08:59:53 +01:00
whyrusleeping
1dafcf24f1
basic gossip spam protection logic
2020-02-16 21:51:18 -08:00
Łukasz Magiera
b6354dfb74
vm: Partially fix vm runtime shim
2020-02-16 23:15:12 +01:00
Łukasz Magiera
5ced1ab905
gofmt
2020-02-14 22:38:30 +01:00
Łukasz Magiera
a92099258b
genesis: Register system actor
2020-02-14 22:38:18 +01:00
Łukasz Magiera
d5027bfbb2
Fix amt bug
2020-02-14 21:33:41 +01:00
Łukasz Magiera
c544c2b5c5
Set hamt bitwidth
2020-02-14 15:14:39 +01:00
Łukasz Magiera
48c5494cf9
use specs-actors birfields
2020-02-14 01:24:24 +01:00
Łukasz Magiera
74bf9119cc
spects-actors: More type propagation
2020-02-13 04:50:45 +01:00
Łukasz Magiera
e1a593c22e
Rename paych -> paychmgr to fix cbor-gen
2020-02-13 01:28:23 +01:00
Łukasz Magiera
e5ab64a3ab
Fix client market impl, gofmt
2020-02-13 01:15:33 +01:00
Łukasz Magiera
91b2d2c2fe
cbor-gen fixes
2020-02-13 01:10:07 +01:00
Łukasz Magiera
0d6cfc879d
Use specs-actors ignatures
2020-02-13 00:52:36 +01:00
Łukasz Magiera
255f511abd
storageminer: Updates to new types
2020-02-12 23:12:11 +01:00
Łukasz Magiera
220bd376b4
seed: Update lotus-seed for new genesis types
2020-02-12 22:41:59 +01:00
Jakub Sztandera
50702f309f
Use new hello protocol
...
Using map encoder.
Types in LatencyMessage are int64 in spec, butl 1. tupled generator
does not support int64 right now; 2. there is no harm in using uint64 here.
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-02-12 19:08:49 +01:00
Jakub Sztandera
5c3ed4d91a
Remove ffi from types package
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-02-12 18:41:35 +01:00
whyrusleeping
243b295559
expose bad block cache reasons through api/cli
2020-02-11 23:44:55 -08:00
Łukasz Magiera
0aaf7b25a9
Propagate spec actor types more
2020-02-12 08:44:20 +01:00
Łukasz Magiera
526cfea568
state: fix actor lookup
2020-02-12 08:22:55 +01:00
whyrusleeping
0661a1bbfc
mark down reason for block inclusion in bad tipset cache
2020-02-11 23:21:11 -08:00
Łukasz Magiera
22047d20ef
actors: Wire up specs-actors init
2020-02-12 03:13:19 +01:00
Łukasz Magiera
ca3eabafef
genesis: Cleanup miner creation
2020-02-12 03:13:00 +01:00
Łukasz Magiera
23b662fe7d
actors: Remove cborgen for old types
2020-02-12 03:12:39 +01:00
Łukasz Magiera
048759a147
genesis: Correct early state construction
2020-02-12 02:15:02 +01:00
Łukasz Magiera
a4f6b739be
genesis: Change template types
2020-02-12 01:58:55 +01:00
Łukasz Magiera
63e801e00f
genesis: Cleanup the structure
2020-02-11 21:48:03 +01:00
Łukasz Magiera
3343e82307
wip gengen fixing
2020-02-11 04:31:28 +01:00
Łukasz Magiera
4d5c4d89ce
stmgr: Update stmgr utils
2020-02-11 03:33:27 +01:00
Łukasz Magiera
91ca4a841a
specs-actors: Import miner/power/cron/paych code
2020-02-11 02:43:26 +01:00
Łukasz Magiera
fa2c6605c2
Fix compilation after dep updates
2020-02-11 02:11:58 +01:00
Łukasz Magiera
6dce181314
Update specs-actors
2020-02-10 22:25:22 +01:00
Łukasz Magiera
c0ed0dda8e
specs-actors: Fis some test compilation errors
2020-02-10 20:16:36 +01:00
Łukasz Magiera
7e70536bf1
specs-actors: Finish type cleanup
2020-02-10 19:21:10 +01:00
Łukasz Magiera
c72727b4fd
specs-actors: Fix most compilation errors
2020-02-09 07:06:32 +01:00
Łukasz Magiera
41daf5ad28
gofmt
2020-02-08 03:18:37 +01:00
Łukasz Magiera
13435aebdc
Spec Actors integration
2020-02-08 03:18:32 +01:00
whyrusleeping
0309e2332c
add proper signature imports to tests
2020-02-06 23:01:37 -08:00
whyrusleeping
d4338047af
mark bad should be respected for every incoming tipset
2020-02-06 22:39:24 -08:00
Łukasz Magiera
fc8bf8c15d
Fix validation with extracted msig
2020-02-06 21:01:29 +01:00
Łukasz Magiera
3d3c1dbbb4
import key algs in wallet
2020-02-06 20:56:56 +01:00
Łukasz Magiera
1d0d429435
actors: Drop refs to multisig_actor.go
2020-02-06 20:49:21 +01:00
Łukasz Magiera
604c234484
Merge remote-tracking branch 'origin/master' into testnet/3
2020-02-06 20:32:25 +01:00
Łukasz Magiera
72c89ab89b
Merge pull request #1223 from filecoin-project/fix/squash-forks
...
squash forks and use correct amt library everywhere
2020-02-06 20:14:55 +01:00
steven004
709fd12b7f
better power show
2020-02-06 14:25:30 +08:00
whyrusleeping
411a69233b
merge miner and miner2 files
2020-02-05 17:07:29 -08:00
Łukasz Magiera
cbf63aab1e
Merge branch 'master' into testnet/3
2020-02-05 21:27:04 +01:00
whyrusleeping
faf05cafcf
squash forks and use correct amt library everywhere
2020-02-04 18:26:42 -08:00
Łukasz Magiera
c013ef3b30
Merge pull request #1219 from filecoin-project/feat/auto-shim
...
Make it all build
2020-02-05 00:01:41 +01:00
whyrusleeping
028a113737
Make it all build
2020-02-04 14:19:05 -08:00
Jakub Sztandera
8d1ef188b1
Merge pull request #1211 from filecoin-project/feat/auto-shim
...
Invoker autoshim
2020-02-04 21:13:26 +01:00
Jakub Sztandera
ad9e4db3d6
Reduce sig import locations
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-02-04 15:12:10 +01:00
Jakub Sztandera
5e6ab42cb8
Don't depend on ffi
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-02-04 15:12:04 +01:00
Jakub Sztandera
54076e9a6b
Invoker autoshim
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-02-04 07:46:24 +01:00
Łukasz Magiera
d9f3b6c121
Merge pull request #1148 from filecoin-project/feat/msig-integration
...
DO NOT MERGE: Feat/msig integration
2020-02-04 07:19:49 +01:00
Łukasz Magiera
f837cb5513
Merge pull request #1184 from filecoin-project/feat/chain-bisect
...
chain: bisect cmd
2020-02-04 04:43:31 +01:00
whyrusleeping
9cee31193c
clean up tests and fix cli commands
2020-02-03 19:37:55 -08:00
Łukasz Magiera
90ecfbe0e4
Merge branch 'master' into feat/new-sb-fs
2020-02-04 04:15:25 +01:00
whyrusleeping
30a922513b
finish the shimming, pull shim code into separate file
2020-02-03 18:52:18 -08:00
whyrusleeping
8c169bb236
add to the shim, get tests passing
2020-02-03 18:52:18 -08:00
whyrusleeping
cd976ad79f
tests are mostly passing!
2020-02-03 18:52:18 -08:00
whyrusleeping
baa3d09577
WIP: one more step before distraction
2020-02-03 18:52:18 -08:00
whyrusleeping
c73c5987c7
WIP: integrate multisig actor from specs-actors
2020-02-03 18:52:18 -08:00
whyrusleeping
dfe87c9f6f
update to latest hamt changes
2020-02-03 18:52:18 -08:00
whyrusleeping
01b6ddbbd3
add a test to ensure there are no off-by-one errors in fork activation logic
2020-01-31 15:52:39 -08:00
Łukasz Magiera
a62572bb76
Merge remote-tracking branch 'origin/master' into feat/new-sb-fs
2020-01-31 08:36:47 +01:00
whyrusleeping
d117cb61b6
change withUpdates to match fork height logic
2020-01-30 21:20:57 -08:00
whyrusleeping
d70ebd2ba5
some code review
2020-01-30 21:10:37 -08:00
whyrusleeping
cda7f08b76
use less than, not equals
2020-01-30 21:05:41 -08:00
whyrusleeping
19a65319ee
test and fix fork, add bigint parsing to lotus shed
2020-01-30 18:14:20 -08:00
Whyrusleeping
7402b14df3
Update chain/actors/actor_miner2.go
...
Co-Authored-By: Łukasz Magiera <magik6k@users.noreply.github.com>
2020-01-30 17:51:19 -08:00
whyrusleeping
0622eb7634
put miner changes behind a fork switch
2020-01-30 17:36:33 -08:00
Jakub Sztandera
c6fd45727d
Add state fork logic
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-01-30 17:17:34 -08:00
whyrusleeping
8ad8fa902d
extra careful power checks on slashing
2020-01-30 16:36:18 -08:00
Jakub Sztandera
f2340579a5
Fix power calculations
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-01-30 14:01:47 -08:00
Łukasz Magiera
de5577ca70
chain: bisect cmd
2020-01-30 22:32:59 +01:00
Łukasz Magiera
4aaa758543
fpost: better fault checks
2020-01-30 01:50:58 +01:00
Łukasz Magiera
b5660b58b3
Merge remote-tracking branch 'origin/master' into feat/sector-recovery
2020-01-24 01:53:58 +01:00
Jakub Sztandera
792a2cad82
limit blocksync response sizes
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-01-23 14:24:52 -08:00
Jakub Sztandera
cd14a5eb40
Merge pull request #1142 from filecoin-project/feat/bs2
...
Add incremental timeouts to blocksync fetching
2020-01-23 12:44:08 -08:00
Jakub Sztandera
6b42a78c3f
Cleanup
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-01-23 12:35:57 -08:00
Łukasz Magiera
558e4c7669
Fix tests after sectorbuilder update
2020-01-23 15:33:28 +01:00
Łukasz Magiera
bd97eb98c5
Merge pull request #1141 from filecoin-project/fix/no-cgo
...
Make it buld without cgo
2020-01-23 14:10:56 +01:00
Jakub Sztandera
f5d061f34f
Add incremental timeouts to blocksync fetching
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-01-22 15:57:42 -08:00
Jakub Sztandera
362fbbf913
Add blockheader_cgo file
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-01-22 15:55:52 -08:00
whyrusleeping
16523c2ef9
fixup tests
2020-01-22 12:56:40 -08:00
Jakub Sztandera
a404d535ee
Make it buld without cgo
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-01-22 12:03:12 -08:00
whyrusleeping
dcd01df2d3
wire up tracing into state tree flush, add pprof flag
2020-01-22 11:53:06 -08:00
whyrusleeping
6d9ac84359
add a CLI for multisig wallets
2020-01-21 11:02:51 -08:00
Łukasz Magiera
fd0bfc8777
Merge pull request #1089 from filecoin-project/feat/state-call-cmd
...
implement state call command for easy method calling
2020-01-21 17:16:54 +01:00
Łukasz Magiera
7b295d7bb0
Merge pull request #1115 from filecoin-project/feat/chainwatch-json-states
...
chainwatch: Store json states
2020-01-21 17:15:33 +01:00
whyrusleeping
955b755055
wire up importing
2020-01-20 17:53:55 -08:00
whyrusleeping
62f05d4c14
WIP: chain export
2020-01-20 15:51:28 -08:00
Łukasz Magiera
62d661f898
chainwatch: Store json states
2020-01-19 22:48:19 +01:00
Łukasz Magiera
b5d603dd46
Cleaner fork logic in onSuccessfulPoSt2
2020-01-19 17:44:44 +01:00
Łukasz Magiera
55fd0a4e60
stmgr: Exetute miner amt after correctly switching to amt2 in miner code
2020-01-19 17:27:43 +01:00
Łukasz Magiera
3c4acbc6cb
Merge pull request #1107 from dtynn/feat/bootybay-fork
...
correctly update proving set & sector set with amt2
2020-01-19 17:22:23 +01:00
Jakub Sztandera
8224aab851
Merge pull request #1112 from zhy2006/master
...
fix: calculate expected cost for sorting peers
2020-01-19 16:00:48 +01:00
Yang
489ecef47b
fix: calculate expected cost for sorting peers
2020-01-19 13:48:15 +08:00
dtynn
8b42ca76f8
add onSuccessfulPoSt2
2020-01-19 08:22:12 +08:00
Łukasz Magiera
1e782b3de2
Merge branch 'master' into feat/event-states
2020-01-18 14:40:59 +01:00
dtynn
8bd62165f5
RemoveFromSectorSet2 is declared but never used, remove redclared one
2020-01-18 20:08:44 +08:00
dtynn
ae8a9a93bf
correctly update proving set & sector set with amt2 after some fork height
2020-01-18 19:41:34 +08:00
whyrusleeping
c6bf252a21
use right fork trigger height
2020-01-17 21:35:45 -08:00
whyrusleeping
f9ea6969c3
Catch cases where new old miners with bad code were getting made
2020-01-17 21:20:56 -08:00
whyrusleeping
0a45e97699
implement state call command for easy method calling
2020-01-17 18:27:29 -08:00
Whyrusleeping
3962d4204b
Merge pull request #1096 from filecoin-project/fix/msgset-add-error
...
Add missing fields to duplicate message error
2020-01-17 16:22:20 -08:00
whyrusleeping
128933a655
fix slashing test
2020-01-16 22:27:56 -08:00
whyrusleeping
055b215bc7
don't allow slashing with old blocks
2020-01-16 22:14:00 -08:00
whyrusleeping
fb173c058e
WIP: blizzard fork changes and test utilities
2020-01-16 18:33:43 -08:00
whyrusleeping
2edb32979f
move fork constant and tag fork branch with comment
2020-01-16 15:11:08 -08:00
whyrusleeping
e3bed8d12a
Catch passing duplicate block to arbitrate consensus fault
2020-01-16 15:11:08 -08:00
Jakub Sztandera
84de47377c
Intoroduce AMT v2 and amtFsck
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-01-16 23:21:16 +01:00