laser
3623925f66
replace go-bls-sigs and go-sectorbuilder with filecoin-ffi
...
- remove old submodules and add new submodule
- update build tooling to consume new unified static library
- update consumers of old libs to use new package
2019-11-26 18:16:37 -08:00
Łukasz Magiera
23900964a1
Fix mixed up CommD/R in genesis creation
2019-11-26 17:35:37 +01:00
whyrusleeping
a98295a747
use the correct sector sizes in places
2019-11-25 20:43:43 -06:00
whyrusleeping
a0588d513d
Add lotus-gen, rewire genesis mining
2019-11-24 22:45:13 -06:00
Łukasz Magiera
96023d415e
actors: Implement cron actor
2019-11-22 23:51:44 +01:00
whyrusleeping
f03198c8a0
sync tests passing, still no vm integration
2019-11-22 10:41:09 -06:00
whyrusleeping
96482f456a
WIP: election post restructuring
2019-11-21 16:21:45 -06:00
whyrusleeping
c4564c0597
use proper round number, allow block signature to be nil
2019-11-20 10:54:10 -06:00
whyrusleeping
f8eabd3db4
Refactor mining logic to match specs ticket chain
2019-11-20 10:52:36 -06:00
whyrusleeping
b77bb9e4aa
Audit pass for blatantly wrong panics
2019-11-16 17:41:14 -06:00
Łukasz Magiera
004f647504
Merge pull request #597 from filecoin-project/feat/simple-power-slash
...
Simple power slashing
2019-11-15 01:14:20 +01:00
Łukasz Magiera
7363ec714a
chain: make tests pass after slashing changes
2019-11-14 00:35:58 +01:00
Łukasz Magiera
6b398cba74
actors: UpdateStorage now manages proving buckets
2019-11-13 22:16:17 +01:00
anorth
84a4766d8f
Add TipSetKey as a concatenation of block CIDs, and use if for ChainGetTipSet, ChainGetRandomness.
2019-11-13 15:23:37 +11:00
Whyrusleeping
aa26935533
Merge pull request #573 from filecoin-project/feat/mark-bad-chains
...
sync: Mark chains with bad blocks as bad too
2019-11-13 05:12:06 +09:00
Łukasz Magiera
73ab6c0c66
WorkerCount on storageminer config
2019-11-12 18:59:38 +01:00
Łukasz Magiera
2d8ad4a1de
sync: batching PersistHeaders
2019-11-12 11:18:46 +01:00
whyrusleeping
4321256992
fix retrieval protocol error by wrapping stream in peeker
2019-11-05 08:38:54 -08:00
Jakub Sztandera
3ea0997c93
Add support for different configs
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-30 17:38:39 +01:00
Łukasz Magiera
6d766ab241
Set e=3
2019-10-28 19:22:40 +01:00
Łukasz Magiera
237f8e8018
Set proving params matching the spec more closely
2019-10-28 17:51:45 +01:00
Łukasz Magiera
117ec636c5
paramfetch: check checksums in parallel
2019-10-27 10:18:27 +01:00
whyrusleeping
4890f577f5
give miners the ability to select different sector sizes
2019-10-25 17:26:15 +02:00
Łukasz Magiera
fabd074165
on chain deals: Deals make it to the chain
2019-10-23 19:39:14 +02:00
Łukasz Magiera
213ac77d08
on chain deals: Expose more chain state in pond
2019-10-23 12:44:00 +02:00
Łukasz Magiera
64bfb38834
on chain deals: Get things to actually run!
2019-10-23 12:44:00 +02:00
Łukasz Magiera
46a0333c9c
on chain deals: Wip porting deal systems to storagemarket
2019-10-23 12:44:00 +02:00
Łukasz Magiera
c41dd4efeb
actora: register storagemarket
2019-10-23 12:44:00 +02:00
Jakub Sztandera
1bf713cb0a
Cleanup imports after rename
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-18 13:47:41 +09:00
Łukasz Magiera
29f26cb8d1
Compiling with the new weight func
2019-10-15 14:31:34 +02:00
Łukasz Magiera
fb80d75b07
Almost building weight function
2019-10-15 14:31:34 +02:00
Łukasz Magiera
2ce338e162
wip weight function
2019-10-15 14:31:34 +02:00
Łukasz Magiera
16a9ab875c
Prep for e=5
2019-10-15 14:31:34 +02:00
Łukasz Magiera
a576b72364
actors: Sync with the new spec, storage actors
2019-10-15 14:31:34 +02:00
whyrusleeping
097e569792
remove not found log, its okay
2019-10-13 22:16:01 +09:00
whyrusleeping
3f342d7ae2
add some more tracing to chain sync
2019-10-10 20:13:26 +09:00
whyrusleeping
85684ba7e2
don't add bad blocks to tipsetcache
2019-10-10 12:04:10 +09:00
Łukasz Magiera
b3a88a21ce
Merge pull request #299 from filecoin-project/feat/remove-vdfs
...
remove VDFs from tickets
2019-10-09 10:02:51 +02:00
whyrusleeping
19b16077fe
remove VDFs from tickets
2019-10-09 13:38:59 +09:00
whyrusleeping
68c1170250
compute signatures over msg cids instead of raw bytes
2019-10-09 10:32:08 +09:00
whyrusleeping
684e8e27fc
use proper const
2019-10-08 09:28:13 +09:00
whyrusleeping
0182b804a2
give syncer ability to deal with forked chains
2019-10-05 23:14:50 -06:00
whyrusleeping
5cb819b322
lots of cleanup, and finally a chain fork test case repro!
2019-10-05 21:32:56 -06:00
whyrusleeping
76ceb1f25a
a bit more hacking to make the test framework bend to my will
2019-10-05 17:18:39 -06:00
whyrusleeping
fca5a4765d
begin allowing test framework to generate forks
2019-10-05 10:04:58 -06:00
whyrusleeping
ed64b87ce2
clean up create block
2019-10-03 13:45:14 -06:00
whyrusleeping
f15557649f
leave better rationale for the special case in TipSetState
2019-10-02 14:27:41 -06:00
whyrusleeping
c0e6e611be
clean up usage of stmgr.TipSetState
2019-10-02 14:03:27 -06:00
whyrusleeping
1419031f1e
switch to parent state roots
2019-10-01 15:21:01 -06:00
Whyrusleeping
47bf759122
Merge pull request #223 from filecoin-project/feat/block-reward
...
working on correct block reward
2019-09-27 15:08:54 -07:00
Jakub Sztandera
ef5e7674db
Use incremental alg for rewards
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-09-27 00:33:38 +02:00
whyrusleeping
0a0a4d30aa
fix account balances to cover costs and collateral
2019-09-26 12:23:03 -07:00
Łukasz Magiera
a2a2169ef8
Setup first devnet params
2019-09-26 12:13:43 -07:00
Łukasz Magiera
9989454968
fix tests
2019-09-26 02:37:48 +02:00
Łukasz Magiera
5fa1a74e74
Bump test genesis token amount
2019-09-24 13:02:54 +02:00
whyrusleeping
47d12417b3
working on correct block reward
2019-09-23 21:15:18 -07: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
9d36a499b6
post merge fixes
2019-09-20 14:22:46 +02: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
197a2a3025
slash consensus fault needs to also be a method on the miner
2019-09-19 22:24:23 -07:00
whyrusleeping
394edc6317
refactor to use 'randomness' as input to new vm creation
2019-09-19 20:08:44 -07:00
whyrusleeping
8d2bcc5e3d
final chain serialization bits
2019-09-16 18:56:37 -07: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
512da42cde
address review feedback
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
314141e4ea
Set timestamp in miner
2019-09-07 00:42:01 +02: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
b69557251c
Add proper timestamping and checking of timestamps
2019-08-29 19:59:54 -07:00
Łukasz Magiera
fe6d5ff3a8
retrieval: resolve some TODOs
2019-08-29 17:51:52 +02:00
Łukasz Magiera
6714240653
SectorSize const
2019-08-29 17:50:19 +02:00
whyrusleeping
ccdc1575d6
add signatures to blocks
2019-08-26 17:46:39 -07:00
Whyrusleeping
07be1ad900
Merge pull request #155 from filecoin-project/feat/cbor-marshal-2
...
Codegen for faster cbor marshaling
2019-08-26 10:35:52 -07:00
Łukasz Magiera
78bfcce907
Fix mining after typecode changes to signatures
2019-08-26 10:46:01 +02:00
whyrusleeping
dd2a217940
remove spurious debug logs
2019-08-22 12:53:32 -07:00
whyrusleeping
7eb89f90d1
Replace most marshaling with codegen
2019-08-22 12:53:32 -07:00
whyrusleeping
53be71fb73
Start using codegen
2019-08-22 12:53:32 -07:00
whyrusleeping
d9eaca5527
fix UpdateStorage to write back state
2019-08-16 13:24:37 -07:00
whyrusleeping
f7dc253669
(mostly) proper ticket generation
2019-08-16 12:39:13 -07:00
whyrusleeping
5a7f59498e
Wire up more proper ticket generation and verification logic
2019-08-16 12:39:12 -07:00
whyrusleeping
2efab559ec
add error wraps and fix tests
2019-08-16 12:39:12 -07:00
whyrusleeping
e9d1f3e7c9
WIP: base mining on power and VRFs
2019-08-16 12:39:12 -07:00
whyrusleeping
ba0d648546
sealing garbage data into a sector that gets accepted by the chain works!
2019-08-07 18:16:58 -07:00
whyrusleeping
5c32725510
sector commitments make it all the way to the chain
2019-08-07 16:22:35 -07:00
whyrusleeping
df5088ea77
bad merging caused this to get missed. my bad
2019-08-05 12:27:26 -07:00
Whyrusleeping
3e768742a2
Merge pull request #113 from filecoin-project/feat/bls-spec-change-refactor
...
refactoring to accomodate the bls message changes in the spec
2019-08-05 12:09:01 -07:00
whyrusleeping
dc7c0fcabe
refactoring to accomodate the bls message changes in the spec
2019-08-01 18:19:22 -07:00
Jakub Sztandera
f19b8c82f4
Wip on tests
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-07-31 21:57:59 +02:00
whyrusleeping
a8b434a708
fix the most annoying bug ever
2019-07-31 10:43:57 -07:00
Łukasz Magiera
cdf0e0c858
chain: Test 'manual' sync
2019-07-31 10:43:13 -07:00
Łukasz Magiera
412a168151
chain: more work on chain sync, sync testing
2019-07-31 10:43:13 -07:00
Łukasz Magiera
b6439fa57d
chain: Test sync with messages
2019-07-31 10:43:13 -07:00
Łukasz Magiera
9ef5e1266e
chain: Test basinc sync on generated chain
2019-07-31 10:43:13 -07:00
Łukasz Magiera
7f5cba1749
chain gen: YieldRepo
2019-07-31 10:43:13 -07:00
Łukasz Magiera
9ea5dbf902
chain: Benchmark chain gen
2019-07-26 13:47:29 -07:00
Łukasz Magiera
952cd288be
chain: fix NewGenerator
2019-07-26 13:47:29 -07:00
whyrusleeping
71baa5cbfe
implement chain generator
2019-07-26 13:47:29 -07:00
whyrusleeping
e09ad3d65c
Refactor out more types into types package, and pull genesis block code into gen package
2019-07-25 16:35:47 -07:00