Jakub Sztandera
1b5797be9d
Merge pull request #2456 from filecoin-project/feat/increase-cron-gas
...
Increase cron gas
2020-07-17 20:11:21 +02:00
Jakub Sztandera
b6f3513173
Increase gas limit for CallRaw
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-17 19:54:39 +02:00
Jakub Sztandera
aafafce083
Increase cron gas
...
Make gas check overflow safe
2020-07-17 19:49:55 +02:00
Łukasz Magiera
bbc2657023
Fix StateMinerProvingSet
2020-07-17 16:21:00 +02:00
Łukasz Magiera
cb6767a02b
Merge remote-tracking branch 'origin/next' into feat/actors-miner-refactor
2020-07-17 15:18:11 +02:00
Peter Rabbitson
e266f3b955
Bump fil-commcid and filecoin-ffi deps
...
Propagates correct on-chain commX CIDs
2020-07-17 00:38:42 +02:00
Sami Mäkelä
ab5b69c5e4
add it to map
2020-07-16 15:30:59 -07:00
Sami Mäkelä
21b78514f5
working
2020-07-16 15:30:59 -07:00
Łukasz Magiera
5a3ab5c5f0
More actor updates
2020-07-16 14:48:20 +02:00
Jakub Sztandera
02631155dc
Add block gas limit verification
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-16 01:00:03 +02:00
Jakub Sztandera
610ed0dc13
Change OnIpldGet
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-15 21:40:49 +02:00
Jakub Sztandera
7b14d445b4
Update message gas limits
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-15 20:01:57 +02:00
Jakub Sztandera
4dd6f6400c
Make virtual gas real
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-15 20:01:57 +02:00
Jakub Sztandera
c0eb4b39ac
Reorg some gas charges
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-15 20:01:56 +02:00
Łukasz Magiera
c1233291bc
Merge remote-tracking branch 'origin/master' into next
2020-07-15 19:47:27 +02:00
Łukasz Magiera
0f2043d874
Merge pull request #2317 from filcloud/issue-2304
...
fix issue 2304: ux improvements
2020-07-15 19:38:35 +02:00
Łukasz Magiera
6b9fd74f8e
Merge pull request #2419 from filecoin-project/schomatis/fix/newtipset/mismatch-lengths
...
fix: NewTipSet: check mismatch in number of parents
2020-07-15 17:49:39 +02:00
Raúl Kripalani
a44e80c829
Merge branch 'next' into mock-clock
2020-07-15 15:51:11 +01:00
Lucas Molas
21ffe188f4
fix: NewTipSet: check mismatch in number of parents
2020-07-15 08:17:50 -03:00
Lucas Molas
0313ab4e49
debug: standard PoSt tag
2020-07-14 19:22:25 -03:00
Łukasz Magiera
bbfa66636d
More test fixing
2020-07-14 22:30:25 +02:00
Łukasz Magiera
af87b9aa98
Fix widowed PoSt scheduler
2020-07-14 19:10:31 +02:00
Raúl Kripalani
0484496d92
Merge branch 'next' into mock-clock
2020-07-14 18:08:26 +01:00
Raúl Kripalani
fbf6596f20
revert to real time for socket/stream deadlines.
2020-07-14 17:42:52 +01:00
Łukasz Magiera
faebc4c948
WIP Integrating specs-actors with refactored miner state
2020-07-14 13:45:45 +02:00
Łukasz Magiera
a778917806
gofmt
2020-07-13 13:35:10 +02:00
Łukasz Magiera
2e4ed57363
Merge remote-tracking branch 'origin/master' into next
2020-07-13 13:34:56 +02:00
Raúl Kripalani
973dbd6a13
Merge branch 'next' into mock-clock
2020-07-13 11:29:53 +01:00
Łukasz Magiera
c1048a0353
vm: Separate logger for actors
2020-07-13 12:29:27 +02:00
Aayush Rajasekaran
7e9f9106c9
Update specs actors
2020-07-12 00:30:42 -04:00
Aayush Rajasekaran
69626272d5
Update with reward state changes
2020-07-12 00:30:42 -04:00
Aayush Rajasekaran
eed44d12ba
Add log method to Runtime
2020-07-12 00:30:42 -04:00
Aayush Rajasekaran
2a61b241a8
Replace abi.BitFieldUnion with bitfield.MultiMerge
2020-07-12 00:30:42 -04:00
Frank
14ec9a2068
update storage miner and seal worker document
2020-07-11 16:55:13 +08:00
austinabell
2fd860324f
avoid generating cids on all messages before checking message length
2020-07-10 19:59:58 -04:00
Łukasz Magiera
39d609a661
Merge pull request #2169 from waynewyang/evnet
...
set called 'true' after handle be called
2020-07-10 22:28:00 +02:00
Łukasz Magiera
89a6b6842c
Merge remote-tracking branch 'origin/master' into next
2020-07-10 22:24:41 +02:00
Łukasz Magiera
5530a7bef2
Merge pull request #2322 from filecoin-project/frrist/deal-state-changes
...
Frrist/deal state changes
2020-07-10 21:57:42 +02:00
Łukasz Magiera
8ce35e30dd
Merge remote-tracking branch 'origin/master' into next
2020-07-10 21:50:38 +02:00
Łukasz Magiera
bc23b0ed4f
Merge pull request #2278 from filecoin-project/fix/rename-vars
...
rename sync variables.
2020-07-10 21:36:04 +02:00
Łukasz Magiera
dc9df10f5a
sync: Also rename span attributes
2020-07-10 21:31:58 +02:00
Raúl Kripalani
13de81b3b2
introduce the ability to mock time.
2020-07-10 15:51:45 +01:00
Łukasz Magiera
e81f182840
Merge pull request #2330 from filecoin-project/feat/fil-units
...
produce and parse FIL suffix on FIL strings
2020-07-10 09:41:01 +02:00
whyrusleeping
a3602d4fcf
fix tests, handle parsing with suffixes properly
2020-07-09 17:26:06 -07:00
frrist
bf6b76a4fb
feat: add market deal state & proposal predicates
...
- detects changes in the market deal proposal and market deal state
amts.
2020-07-09 14:43:21 -07:00
whyrusleeping
a79b31c230
produce and parse FIL suffix on FIL strings
2020-07-08 16:16:45 -07:00
Łukasz Magiera
8fbeebb86d
rename sync variables.
2020-07-08 22:02:28 +02:00
Łukasz Magiera
2c00b92325
Merge remote-tracking branch 'origin/master' into next
2020-07-08 21:47:05 +02:00
frrist
d78b7e57c7
polish: include key in AdtArrayDiff interface
...
- some values do not contain their keys
2020-07-08 11:19:14 -07:00
frrist
509e3b653c
polish: genericize adt array diff & extract store
...
- adds testing for adt diff
2020-07-08 11:19:14 -07:00
Aayush Rajasekaran
56a892e5f9
Merge pull request #2246 from TroyWind/fit-multiple-piece-into-a-sector
...
a sector contains multiple deals(pieces), the state of deals incorrect
2020-07-08 11:21:41 -04:00
Łukasz Magiera
d16de56280
gofmt
2020-07-08 14:35:53 +02:00
Łukasz Magiera
b049c5a7d1
Merge remote-tracking branch 'origin/master' into next
2020-07-08 14:35:40 +02:00
Jakub Sztandera
74db060cdb
Fix bad block rason if ValidateBlock fails
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-08 03:55:56 +02:00
Aayush Rajasekaran
ad980b4966
VerifyConsensusFault should return an error if no fault is found
2020-07-07 01:29:16 -04:00
Łukasz Magiera
99b5ec96a2
Merge pull request #2101 from filecoin-project/feat/persistent-journal
...
implement a persistent journal for lotus node operations
2020-07-07 02:38:04 +02:00
Łukasz Magiera
66e547230d
Merge pull request #2233 from filecoin-project/frrist/miner-sector-predicate
...
feat: add miner sector predicate and test
2020-07-07 01:43:41 +02:00
frrist
3c6e46cd70
feat: add miner sector predicate and test
...
-polish: OnActorStateChanged operate over TipSetKey
- it was calling key() interally and tipsetkeys are cheaper to get than
the full tipset
-polish: improve predicate method names
2020-07-06 14:27:39 -07:00
Łukasz Magiera
e7aec53631
Merge remote-tracking branch 'origin/master' into next
2020-07-06 23:02:24 +02:00
Jakub Sztandera
49800b8fec
Add original tipset to the string
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-06 19:46:25 +02:00
Jakub Sztandera
50c773c6a3
Add better description to bad blocks
...
Track original cause of blocks being marked as bad.
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-06 19:23:29 +02:00
whyrusleeping
42bd4eccbe
implement a persistent journal for lotus node operations
2020-07-06 09:42:00 -07:00
Łukasz Magiera
4b0ae7ef9a
Merge remote-tracking branch 'origin/master' into next
2020-07-06 11:38:19 +02:00
whyrusleeping
16e493a67a
provide decoded return values in output of StateWaitMsg
2020-07-03 09:57:58 -07:00
Łukasz Magiera
655d6f6720
Merge remote-tracking branch 'origin/master' into next
2020-07-03 17:03:09 +02:00
Łukasz Magiera
d3a1261f1e
Merge pull request #2227 from filecoin-project/asr/api
...
Add docs comments to API
2020-07-03 15:33:07 +02:00
Jakub Sztandera
9936439608
Merge remote-tracking branch 'origin/master' into next
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-03 14:56:06 +02:00
Łukasz Magiera
bb3758f648
seed: Support fake preseals
2020-07-03 03:29:21 +02:00
刘林欣
ff4d9ecc77
fit in cases where a sector contains multiple deals, the state of each deal is correct
2020-07-03 09:20:47 +08:00
Łukasz Magiera
14ae8c7272
Merge pull request #2156 from filecoin-project/fix/bench-analyze
...
Improve performance of bench import analyze
2020-07-02 19:35:18 +02:00
Jakub Sztandera
567b8082c3
Back to 10 callers
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-02 18:47:35 +02:00
Jakub Sztandera
c4158f12f1
Include proof number as extra in OnVerifyPost
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-02 18:47:35 +02:00
Jakub Sztandera
11dc902d53
Adjust OnMethodInvocation
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-02 18:47:34 +02:00
Jakub Sztandera
9ccd25b072
Update gas values, compute correlation coefficient
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-02 18:47:33 +02:00
Jakub Sztandera
c68a8f802e
Adjust gas
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-02 18:47:33 +02:00
Jakub Sztandera
bc88c632d1
Fix previous commit
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-02 18:47:33 +02:00
Jakub Sztandera
1e17ea3fff
Adjust gas values
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-02 18:47:33 +02:00
Jakub Sztandera
cd2595da67
Adjust gas
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-02 18:47:32 +02:00
Jakub Sztandera
4db61e71da
Reduce caller depth
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-02 18:47:32 +02:00
Jakub Sztandera
a2fd0aad41
More on OnActorExec
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-02 18:47:31 +02:00
Jakub Sztandera
01ac4e5da3
Gas on actor exec
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-07-02 18:47:30 +02:00
whyrusleeping
f8a1fb2321
fix vm abortf log message
2020-07-01 15:51:21 -07:00
Aayush Rajasekaran
605e9bbbd7
Add docs comments to API
2020-07-01 17:16:05 -04:00
Łukasz Magiera
4c422c2d50
specs-actors v0.7.1
2020-07-01 13:47:40 +02:00
hannahhoward
92bb5bd915
fix(lint): fix lint errors
2020-07-01 12:06:29 +02:00
Dirk McCormick
a3abff768c
fix: dont register state change if deal is not present in from and to states
2020-07-01 12:06:29 +02:00
Dirk McCormick
1fd1c2edbd
feat: allow nil deal state change (deal removed)
2020-07-01 12:06:29 +02:00
Łukasz Magiera
4c1dfd7eda
sync: Fix build
2020-07-01 11:24:26 +02:00
Łukasz Magiera
cfdbc2312d
Merge branch 'master' into next
2020-07-01 11:22:57 +02:00
Łukasz Magiera
e1799f1524
Merge pull request #2155 from filecoin-project/feat/ffi-0.30.1
...
Update FFI to 0.30.1
2020-07-01 11:17:18 +02:00
Łukasz Magiera
cd34d02377
Merge pull request #2209 from filecoin-project/feat/faster-winpost-sectors
...
use bitfields to enumerate sectors for winning post
2020-07-01 10:43:24 +02:00
Łukasz Magiera
a362ef97df
Merge pull request #2188 from filecoin-project/const-relaxation
...
make system constants configurable as vars.
2020-07-01 10:43:07 +02:00
Łukasz Magiera
92f392d422
Merge pull request #2192 from filecoin-project/fix/evnts-map-pnc
...
Fix concurrent map access panic in event API
2020-07-01 10:36:29 +02:00
whyrusleeping
da78ff9151
use bitfields to enumerate sectors for winning post
2020-06-30 21:57:49 -07:00
Raúl Kripalani
77c7eb6fd9
fix lint errors.
2020-06-30 22:56:13 +01:00
Whyrusleeping
857b5962da
Merge pull request #2000 from filecoin-project/asr/maxheight
...
Do not connect to peers with impossibly high heads
2020-06-30 14:24:50 -07:00
Dirk McCormick
49dccf4284
fix: concurrent map access panic
2020-06-30 14:24:08 -04:00
Raúl Kripalani
3b826e41f6
rename build.AllowableClockDrift{=>Secs}.
2020-06-30 15:00:01 +01:00
Raúl Kripalani
4f9c907248
rename build.{BlockDelay=>BlockDelaySecs}.
...
Since this global is not typed as a time.Duration,
rather as an int, it makes sense to clarify the unit.
2020-06-30 14:26:49 +01:00
Raúl Kripalani
0fddf3e114
make system constants configurable as vars.
...
This configurability is unlocked through the `testground`
build tag, which Project Oni will uses.
Changes in the usage places of these relaxed constants
were required due to the fact that Golang constants are
untyped, but vars aren't.
Read https://blog.golang.org/constants for more info.
2020-06-30 14:18:26 +01:00
Łukasz Magiera
24529bf35d
Merge branch 'next' into feat/specs-actors-v0.7.0
2020-06-29 22:45:50 +02:00
Łukasz Magiera
77b3bf8bc2
Update FFI to 0.30.1
2020-06-29 20:24:27 +02:00
Łukasz Magiera
2bab5d1ddd
Merge remote-tracking branch 'origin/master' into next
2020-06-29 17:45:58 +02:00
Dirk McCormick
c72def55fe
test: add more predicate tests
2020-06-29 11:21:29 -04:00
waynewyang
048d0e0d7a
set 'true' after handle be called
2020-06-29 21:37:08 +08:00
Łukasz Magiera
7058f4eb63
Merge pull request #2153 from filecoin-project/feat/state-changes-api
...
Feat/state changes api
2020-06-29 15:19:18 +02:00
Aayush Rajasekaran
1f57d9462c
Don't return nil interfaces from runtime.Send()
2020-06-29 01:13:45 -04:00
Lucas Molas
fbfe57cd63
doc: block validations ( #1919 )
...
Co-authored-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-26 20:13:14 -03:00
Dirk McCormick
659c723ea3
fix: embed hcEvents into events as pointer so as not to copy lock
2020-06-26 15:42:44 -04:00
Dirk McCormick
bbb9a9cd1a
refactor: lint fixes
2020-06-26 15:36:48 -04:00
Dirk McCormick
db1773d708
docs: add predicate docs
2020-06-26 14:59:23 -04:00
Dirk McCormick
a1b009328d
refactor: simplify diff
2020-06-26 14:43:46 -04:00
Dirk McCormick
393a9ca4f2
test: predicates test
2020-06-26 14:41:19 -04:00
Aayush Rajasekaran
8e7ac226b0
Include WinCount when awarding block rewards
2020-06-26 14:27:49 -04:00
Łukasz Magiera
edd7151184
Fix StateMinerInitialPledgeCollateral
2020-06-26 15:49:39 +02:00
Łukasz Magiera
b8f1264e71
genesis: Update process comment
2020-06-26 15:23:52 +02:00
Łukasz Magiera
a6d1323eba
Update specs-actors to v0.7.0; More correct genesis sector import
2020-06-26 15:08:12 +02:00
Łukasz Magiera
d27ff60ae2
Merge remote-tracking branch 'origin/master' into next
2020-06-26 13:08:37 +02:00
Dirk McCormick
abad4a3941
refactor: modify predicates API
2020-06-25 17:43:37 -04:00
Dirk McCormick
728afc0587
refactor: remove state API example
2020-06-25 12:46:43 -04:00
Dirk McCormick
95a9dc9db0
refactor: use struct instead of array for state change
2020-06-25 12:43:06 -04:00
Dirk McCormick
b62fef7541
feat: include previous TS in StateChangedHandler
2020-06-25 12:43:06 -04:00
Dirk McCormick
dd490220d7
refactor: Extract message-specific code from calledEvents
...
This allows us to create a general purpose head change events manager that can be used for call events and also for state change events.
2020-06-25 12:43:06 -04:00
hannahhoward
7f932b96ae
WIP
2020-06-25 12:41:50 -04:00
Jakub Sztandera
10c4fae8c0
Make gas traces smaller, strip callers in import-bench
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-25 16:46:50 +02:00
Jakub Sztandera
4895c895aa
Change WinCount to int64, wire it to BlockMessage
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-24 19:51:22 +02:00
Jakub Sztandera
88352c74fc
Address @Magik6k CR
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-24 17:11:26 +02:00
Jakub Sztandera
008a2969b2
Fix two races in events
...
Also race fix: depends on https://github.com/ipfs/go-blockservice/pull/65
Resolves #2092 , #2099 , #2108 , #1930 , #2110
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-24 17:05:24 +02:00
Jakub Sztandera
36d5880a30
Remove TestElectionExp
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-24 15:25:23 +02:00
Raúl Kripalani
c8104a03e6
some initial godocs. ( #2118 )
2020-06-23 18:51:25 -03:00
Yusef Napora
5074cf8beb
import DrandConfig from dtypes
2020-06-23 16:23:06 -04:00
Yusef Napora
b448de422e
improve DrandConfig dependency injection
2020-06-23 16:01:10 -04:00
Yusef Napora
628872d0e4
forgot my go fmt hook
2020-06-23 15:10:27 -04:00
Yusef Napora
960523f45f
fix drand test
2020-06-23 15:09:28 -04:00
Jakub Sztandera
19ed695811
Fix TestInteropBH
...
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-23 20:37:35 +02:00
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