whyrusleeping
9f654ab893
integrate new bigint encoding into refmt atlas (temporary)
2019-09-25 21:03:13 -07:00
whyrusleeping
f5ae64bf94
filter out messages that have insufficient funds from block production
2019-09-25 20:48:53 -07:00
Łukasz Magiera
23138d9bd0
Merge pull request #230 from filecoin-project/feat/incremental-deals
...
Incremental deal payments
2019-09-26 03:00:05 +02:00
Łukasz Magiera
9989454968
fix tests
2019-09-26 02:37:48 +02:00
whyrusleeping
5f31544faa
serialize big ints without a tag
2019-09-25 14:02:10 -07:00
Łukasz Magiera
76c5eca05a
chain: Reduce log noise
2019-09-25 15:38:59 +02:00
Łukasz Magiera
2fe4ffdfdc
deals: more atomic voucher handling
2019-09-25 14:56:04 +02:00
Łukasz Magiera
72bb5c6919
deals: Better errors for used lanes
2019-09-25 13:55:15 +02:00
Łukasz Magiera
caa767e081
Incremental deal payments
2019-09-24 23:13:47 +02:00
Łukasz Magiera
5fa1a74e74
Bump test genesis token amount
2019-09-24 13:02:54 +02:00
whyrusleeping
2f35a23f0f
fix block reward math
2019-09-23 21:15:18 -07:00
whyrusleeping
47d12417b3
working on correct block reward
2019-09-23 21:15:18 -07:00
whyrusleeping
0419945d49
implement AddFaults method
2019-09-23 20:20:55 -07:00
Łukasz Magiera
5ce15bfaf4
types: Less/GreaterThan for bigints
2019-09-23 19:11:44 +02:00
Łukasz Magiera
b79b826805
miner: fix required collateral check
2019-09-23 13:41:26 +02:00
Łukasz Magiera
9a990dbd8a
use new sectorbuilder file interfaces
2019-09-23 12:50:28 +02:00
Łukasz Magiera
3589852f0e
statestree: Test actorcache in SetActor
2019-09-23 11:52:53 +02:00
Łukasz Magiera
f357becc8a
statetree: add actor to actcache in SetActor
2019-09-23 11:45:22 +02:00
Łukasz Magiera
4202da62cd
Merge pull request #216 from filecoin-project/feat/consensus-slashing
...
Feat/consensus slashing
2019-09-20 16:58:03 +02:00
Łukasz Magiera
d2fdb058ef
miner actor: Skip muldiv if frac == 1
2019-09-20 16:21:00 +02:00
Łukasz Magiera
c4de98607b
Merge remote-tracking branch 'origin/master' into feat/post-schedule
2019-09-20 14:24:37 +02:00
Łukasz Magiera
9d36a499b6
post merge fixes
2019-09-20 14:22:46 +02:00
Łukasz Magiera
b58246d128
Merge remote-tracking branch 'origin/master' into feat/post-schedule
2019-09-20 14:22:22 +02:00
Łukasz Magiera
113f6f4791
mpool: Fix racy nonce logic
2019-09-20 11:01:49 +02:00
whyrusleeping
b3a0ec9155
resolve review note
2019-09-19 23:47:09 -07:00
Whyrusleeping
5ba7307ab9
Merge pull request #214 from filecoin-project/feat/rand-refactor
...
refactor to use 'randomness' as input to new vm creation
2019-09-19 23:21:19 -07:00
whyrusleeping
49c677fb6e
rename 'Fil' to 'FromFil'
2019-09-19 22:25:10 -07:00
whyrusleeping
3154374132
fix account balances to make tests pass
2019-09-19 22:25:10 -07:00
whyrusleeping
2d5b88ce84
avoid floating point math
2019-09-19 22:25:10 -07:00
whyrusleeping
197a2a3025
slash consensus fault needs to also be a method on the miner
2019-09-19 22:24:23 -07:00
whyrusleeping
fe020d9fd1
implement SlashConsensusFault
2019-09-19 22:23:24 -07:00
whyrusleeping
394edc6317
refactor to use 'randomness' as input to new vm creation
2019-09-19 20:08:44 -07:00
Łukasz Magiera
73d1182121
post: More review addressing
2019-09-19 22:34:23 +02:00
whyrusleeping
f7e3762cfc
add state replay api and command
2019-09-19 13:25:18 -07:00
Łukasz Magiera
5fd98b7d27
post: Address review
2019-09-19 22:24:01 +02:00
Łukasz Magiera
fdb45aeeaa
pond: +20k, +200k buttons
2019-09-19 22:17:26 +02:00
Łukasz Magiera
72e003ef9e
actors: remove debug logging from SubmitPost
2019-09-19 20:42:43 +02:00
Łukasz Magiera
6c48ab3be4
Compute post more than once
2019-09-19 20:38:58 +02:00
Łukasz Magiera
42b8af302f
get sector set size from AMT
2019-09-19 20:31:25 +02:00
Łukasz Magiera
18b72b1584
Fix bigint serialization
2019-09-19 20:15:44 +02:00
Łukasz Magiera
839597012d
Fix post seed height math
2019-09-19 19:38:56 +02:00
Łukasz Magiera
c40f89f2a9
Almost working PoSt submission
2019-09-19 18:17:54 +02:00
Łukasz Magiera
d55e872135
Merge remote-tracking branch 'origin/master' into feat/post-schedule
2019-09-19 16:42:50 +02:00
Jakub Sztandera
9d7cdafde4
Add TODO about PoST verification errors
...
,
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-09-19 15:57:48 +02:00
Jakub Sztandera
a0f80bb4dd
Another typo
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-09-19 15:56:44 +02:00
Jakub Sztandera
6fe32f55fc
Fix typo
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-09-19 15:37:45 +02:00
Jakub Sztandera
54e076b6f9
Add randomness
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-09-19 15:32:00 +02:00
whyrusleeping
86fd132cf7
add deleting done sectors
2019-09-18 21:56:40 -07:00
Łukasz Magiera
689b1e5b3c
events: Safer restarting in listenHeadChanges
2019-09-18 20:07:39 +02:00
Jakub Sztandera
9c02f7f839
Rought PoST method
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-09-18 17:10:03 +02:00
Łukasz Magiera
cc82cc9675
miner: Initial event system integration
2019-09-18 15:32:21 +02:00
Łukasz Magiera
76ce3d9bb2
events: Call ChainGetBlockMessages with the right CID
2019-09-18 13:45:52 +02:00
Łukasz Magiera
b85937dcdf
events: More test cases for ChainAt
2019-09-18 13:10:23 +02:00
Łukasz Magiera
fe7efa753d
events: Build on chain API calls
2019-09-18 13:01:52 +02:00
whyrusleeping
f2f60c029b
Add impl for GetTipsetByHeight
2019-09-17 20:25:12 -07:00
whyrusleeping
9763810100
cleaup, small refactor
2019-09-17 19:55:51 -07:00
whyrusleeping
b1e77748e7
scaffolding and refactoring to make post scheduler work
2019-09-17 19:50:03 -07:00
whyrusleeping
cc877f5c04
WIP: expanding API to serve post producer needs
2019-09-17 17:08:49 -07:00
whyrusleeping
11040f105b
WIP: post scheduling
2019-09-17 15:51:46 -07:00
Whyrusleeping
e244171cd9
Merge pull request #200 from filecoin-project/feat/post2
...
Add BitField with RLE
2019-09-18 04:45:38 +10:00
Łukasz Magiera
b33c1e1310
Merge pull request #201 from filecoin-project/feat/pond-stopstart
...
Graceful node shutdown, pond node stopping
2019-09-17 20:45:18 +02:00
Jakub Sztandera
f5a2d998bf
Add BitField with RLE
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-09-17 11:24:11 -07:00
Whyrusleeping
0f92df7b06
Merge pull request #199 from filecoin-project/feat/serialization-3
...
final chain serialization bits
2019-09-18 04:21:55 +10:00
whyrusleeping
e7b642f1ff
fix import grouping
2019-09-17 11:09:22 -07:00
Whyrusleeping
cf257ae773
Update chain/sync.go
...
Co-Authored-By: Łukasz Magiera <magik6k@users.noreply.github.com>
2019-09-18 04:08:03 +10:00
Łukasz Magiera
7f68fa9567
Fix tests
2019-09-17 16:45:09 +02:00
Łukasz Magiera
83f1a336a6
node: Basic graceful shutdown
2019-09-17 16:23:08 +02:00
Łukasz Magiera
8f84aa7097
Fix stmgr.GetMinerPeerID
2019-09-17 10:34:41 +02:00
Łukasz Magiera
5ea1459275
Use atomic moppl API in more places
2019-09-17 10:15:26 +02:00
Łukasz Magiera
567ae92ff2
Move more logic into statemanager
2019-09-17 10:00:38 +02:00
whyrusleeping
8d2bcc5e3d
final chain serialization bits
2019-09-16 18:56:37 -07:00
Łukasz Magiera
f8a2ecaf52
gofmt; mod tidy
2019-09-16 23:26:19 +02:00
Łukasz Magiera
9fe198dc6f
retrieval: payment validation
2019-09-16 23:25:23 +02:00
Łukasz Magiera
c275d1fb6a
deals: call 'complete' handler
2019-09-16 20:08:24 +02:00
Łukasz Magiera
eda72468ce
Sector Commitment tracker
2019-09-16 20:08:24 +02:00
Łukasz Magiera
1e07a12a2e
More atomic mpool APIs
2019-09-16 20:08:23 +02:00
whyrusleeping
1075c9a5e0
implement ask query protocol
2019-09-13 16:49:27 -07:00
Łukasz Magiera
bc9f495440
deals: Check WainMsg error in handler
2019-09-13 22:50:07 +02:00
Łukasz Magiera
1ba1df3cac
deals: don't throw away failed deals
2019-09-13 21:43:33 +02:00
Łukasz Magiera
9c276e5331
deals: Split state store
2019-09-13 21:19:13 +02:00
Łukasz Magiera
08ea758216
deals: 'fix' struct serialization
2019-09-13 20:19:49 +02:00
Łukasz Magiera
0406705490
vm: fix ReadState
2019-09-13 20:16:39 +02:00
Łukasz Magiera
6a31ff2f2e
deals: Wait for channel messagi in handler
2019-09-13 19:59:10 +02:00
Łukasz Magiera
1fc7a48759
deals: API to list client deals
2019-09-13 19:59:10 +02:00
Łukasz Magiera
388e3ffa96
paych: Api to reuse open channels for new payments
2019-09-13 19:59:10 +02:00
Łukasz Magiera
72a406ec7e
deals: Better client deal tracking
2019-09-13 19:59:10 +02:00
whyrusleeping
c7ad08c565
check block signatures during sync
2019-09-11 13:12:49 -07:00
whyrusleeping
fe2885382c
self review, cleanup
2019-09-10 17:13:46 -07:00
whyrusleeping
a47969c76b
finish up making the new serializations work
2019-09-10 16:03:17 -07:00
whyrusleeping
2f019158d0
more switching over to correct cbor marshaling
2019-09-10 12:58:45 -07:00
whyrusleeping
1f1bbc9b8d
cbor gen types and cleaning up after
2019-09-09 19:53:18 -07:00
whyrusleeping
b5bd1820d9
WIP: vm perf improvements
2019-09-09 19:53:17 -07:00
whyrusleeping
512da42cde
address review feedback
2019-09-09 19:14:27 -07:00
Whyrusleeping
3ab711d133
Update chain/stmgr/stmgr.go
...
Co-Authored-By: Łukasz Magiera <magik6k@users.noreply.github.com>
2019-09-09 19:14:27 -07:00
whyrusleeping
bc7f86ef05
self review, cleanup
2019-09-09 19:14:27 -07:00
whyrusleeping
74f68dc630
perform tipset expansion on sync and fix tipset comparison
2019-09-09 19:14:27 -07:00
whyrusleeping
b5462542a8
fix tests and fix a bug in blocksync
2019-09-09 19:14:26 -07:00
whyrusleeping
ed45d1c2b4
refactor state utilities into StateManager package, implement proper election proofs
2019-09-09 19:14:00 -07:00
whyrusleeping
6e21372ccb
initial refactor for creating tipsets with multiple parents
2019-09-09 19:12:32 -07:00
Łukasz Magiera
4a5aa680ae
deals: Address review
2019-09-09 21:21:37 +02:00
Łukasz Magiera
819e9a939d
gofmt; mod tidy
2019-09-09 18:02:57 +02:00
Łukasz Magiera
19ec43d7fd
deals: Store inclusion proofs in paychmgr
2019-09-09 16:00:50 +02:00
Łukasz Magiera
5200a37349
paychmgr: store proofs with vouchers
2019-09-09 15:59:07 +02:00
Łukasz Magiera
8b29c98919
paych actor: pass verification errors
2019-09-09 15:55:06 +02:00
Łukasz Magiera
83932a7c80
miner actor: Pass correct bytes to VerifyPieceInclusionProof
2019-09-09 15:50:52 +02:00
Łukasz Magiera
a1bcc826ac
Fix amt.ErrNotFound handling in actor_miner
2019-09-09 13:22:09 +02:00
Łukasz Magiera
0b87411c7d
Use AMT in StorageMinerActor ctor
2019-09-07 00:42:01 +02:00
Łukasz Magiera
4acf6d9d47
Partial payment integration in deals
2019-09-07 00:42:01 +02:00
Łukasz Magiera
2e7fb42a48
types: Better bigint error
2019-09-07 00:42:01 +02:00
Łukasz Magiera
b42164f76d
mpool: Don't return nil from Pending
2019-09-07 00:42:01 +02:00
Łukasz Magiera
314141e4ea
Set timestamp in miner
2019-09-07 00:42:01 +02:00
Łukasz Magiera
c034f0d763
Merge pull request #179 from filecoin-project/feat/events
...
Chain event helper
2019-09-05 11:25:24 +02:00
Łukasz Magiera
4fa37e7884
chain events: More docs
2019-09-05 10:27:08 +02:00
Łukasz Magiera
59fb84e77e
chain events: NoTimeout const
2019-09-05 09:58:50 +02:00
Łukasz Magiera
611ea02cea
chain events: More logical apply order
2019-09-05 09:57:18 +02:00
Łukasz Magiera
caed73ef6c
chain events: Move to chain/events
2019-09-05 09:40:50 +02:00
Łukasz Magiera
50960b3f8c
chain events: Separate heightEvents from main struct
2019-09-05 09:36:11 +02:00
Łukasz Magiera
519eed9290
chain events: Annotate types for readability
2019-09-05 09:31:16 +02:00
Jakub Sztandera
b3d881117d
Merge pull request #178 from filecoin-project/feat/fuzz
...
Fuzz message
2019-09-05 09:21:21 +02:00
Łukasz Magiera
afcb35e969
chain events: Make CalledHandler revert aware
2019-09-04 22:22:25 +02:00
Łukasz Magiera
f02119168e
chain events: Make messagesForTs more robust
2019-09-04 22:01:06 +02:00
Łukasz Magiera
e4c73e9fd2
chain events: Timeouts, cancellation
2019-09-04 21:41:34 +02:00
Łukasz Magiera
56b5574a72
chain events: Fix some edge cases
2019-09-04 20:56:51 +02:00
Łukasz Magiera
289470a466
chain events: Restructure the logic
2019-09-04 18:09:08 +02:00
Łukasz Magiera
4d0d51b58c
chain events: split headChange
2019-09-03 19:59:32 +02:00
Łukasz Magiera
5f88ceb965
basic chain event impl
2019-09-03 19:45:55 +02:00
Jakub Sztandera
5400547a5f
Fuzz message
...
I had to move Verify function into separate file to tag it as `cgo` only
build. go-fuzz doesn't work with cgo.
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-09-02 15:36:31 +02:00
whyrusleeping
cc9b638788
use wait func in other test
2019-08-30 18:11:32 -07:00
whyrusleeping
d0d7d259b6
fix ChainNotify
2019-08-30 18:03:10 -07:00
whyrusleeping
d7ab382c8c
add (currently broken) testutil sync wait
2019-08-30 16:44:22 -07:00
whyrusleeping
054f0fc0ef
trying to hack together automated benchmarks submission
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-08-30 15:47:22 -07:00
Łukasz Magiera
57d0f7c722
Merge pull request #162 from filecoin-project/feat/retrieval
...
Retrieval
2019-08-31 00:29:00 +02:00
Whyrusleeping
b0d0af603c
Merge pull request #167 from filecoin-project/feat/timestamping
...
Add proper timestamping and checking of timestamps
2019-08-30 14:23:55 -07:00
Whyrusleeping
7bf4ad8d9c
Merge pull request #171 from filecoin-project/feat/gas5
...
Charge per byte of object get
2019-08-30 11:23:02 -07:00
Whyrusleeping
7df6417ba8
Merge pull request #169 from filecoin-project/fix/msg-wait-panic
...
handle channel closing properly
2019-08-30 11:22:11 -07:00
Jakub Sztandera
e6b83d9428
Charge per byte of object get
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-08-30 18:05:54 +02:00
Łukasz Magiera
67e780825b
Merge remote-tracking branch 'origin/master' into feat/retrieval
2019-08-30 13:25:03 +02:00
whyrusleeping
6144f1af73
handle channel closing properly
2019-08-29 20:25:31 -07:00
whyrusleeping
b69557251c
Add proper timestamping and checking of timestamps
2019-08-29 19:59:54 -07:00
Łukasz Magiera
6b80b98c64
retrieval: fix actor tests
2019-08-29 21:01:29 +02:00
Łukasz Magiera
711c61cba1
Merge remote-tracking branch 'origin/master' into feat/retrieval
2019-08-29 20:59:03 +02:00
Jakub Sztandera
a8e03d8a69
Charge gas per msg byte
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-08-29 20:34:53 +02:00
Jakub Sztandera
5c31b81701
Charge per byte of storage
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-08-29 20:34:53 +02:00
Łukasz Magiera
fe6d5ff3a8
retrieval: resolve some TODOs
2019-08-29 17:51:52 +02:00
Łukasz Magiera
c437b6884d
retrieval: gofmt
2019-08-29 17:51:52 +02:00
Łukasz Magiera
a6914309a6
retrieval: 'fix' GetPIP in handler
2019-08-29 17:51:06 +02:00
Łukasz Magiera
6714240653
SectorSize const
2019-08-29 17:50:19 +02:00
Łukasz Magiera
be30bc79a5
Retrieval works!
2019-08-29 17:50:19 +02:00
Łukasz Magiera
28d3eb38eb
basic retrieval content discovery
2019-08-29 17:48:19 +02:00
Łukasz Magiera
cad3efb9ba
Command to list sealed blocks
2019-08-29 17:48:19 +02:00