Jakub Sztandera
bc97a73d67
Implment formatter on FIL to override big.Int
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-30 01:52:24 +01:00
Łukasz Magiera
be4a5665fe
deals: gofmt
2019-10-29 13:02:24 +01:00
Łukasz Magiera
bee0ecf97f
deals: Nicer output in client cli
2019-10-29 13:02:13 +01:00
Łukasz Magiera
738e8c5a3c
deals: Ask prices per GiB
2019-10-29 11:19:39 +01:00
Łukasz Magiera
72af55d067
deals: Price per epoch
2019-10-29 11:01:18 +01:00
Łukasz Magiera
e98feb4a39
fix PowerCmp
2019-10-28 21:28:01 +01:00
Jakub Sztandera
563c0e494e
Use div-free EC power selection function
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-28 20:01:10 +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
Adrian Lanzafame
0822bdadac
add statemanager.CallRaw span
...
This allows for the chain.Sync trace to be connected to the
entire chain sync operation, when viewing in Jaeger.
2019-10-28 19:29:41 +10:00
Łukasz Magiera
117ec636c5
paramfetch: check checksums in parallel
2019-10-27 10:18:27 +01:00
Łukasz Magiera
874be79958
very basic sector seal scheduling
2019-10-27 09:56:53 +01:00
whyrusleeping
874ab1456c
WIP: updating to new proofs code
2019-10-25 18:07:34 +02:00
Łukasz Magiera
b8b081faa6
Merge pull request #454 from waynewyang/InitActorState-AddActor
...
fix method:InitActorState.AddActor
2019-10-25 17:40:12 +02:00
Łukasz Magiera
55f22884ab
Merge pull request #457 from waynewyang/MinerActor-CommitSector
...
Check if fromaddress equal workaddress when CommitSector
2019-10-25 17:39:28 +02:00
Łukasz Magiera
bbe5afeee4
Merge pull request #379 from filecoin-project/feat/variable-sector-sizes
...
Allow miners to create differently sized sectors
2019-10-25 17:37:54 +02:00
Łukasz Magiera
cf2bbeb775
Merge pull request #410 from filecoin-project/feat/multisig-lockout
...
Add linear vesting to multisig
2019-10-25 17:34:41 +02:00
whyrusleeping
4890f577f5
give miners the ability to select different sector sizes
2019-10-25 17:26:15 +02:00
Łukasz Magiera
eeca3d86df
Merge pull request #415 from filecoin-project/feat/deals-on-chain
...
On-Chain deals
2019-10-25 17:03:25 +02:00
Łukasz Magiera
3137ffb347
on chain deals: Check StoragePrice
2019-10-25 14:44:34 +02:00
Łukasz Magiera
f2550f9e36
on chain deals: Deal not found is not fatal
2019-10-24 17:56:32 +02:00
Łukasz Magiera
0b1427e487
on chain deals: Fix lint warnings
2019-10-24 17:46:21 +02:00
Łukasz Magiera
9bd086bf7b
Use shorter code cids
2019-10-24 17:39:16 +02:00
Łukasz Magiera
e148f33008
on chain deals: Address review comments
2019-10-24 17:14:25 +02:00
Łukasz Magiera
76f1e6e207
on chain deals: Put dealIDs in CommitSector messages
2019-10-24 16:24:31 +02:00
Whyrusleeping
705637b69f
Merge pull request #448 from filecoin-project/fix/wallet-error
...
Cleanup GetBalance call and warn if actor does not exist
2019-10-24 21:17:23 +08:00
Jakub Sztandera
dd9978b418
Merge pull request #468 from filecoin-project/feat/cache-msg-cids
...
cache block message cids to make blocksync cheaper
2019-10-24 14:47:06 +02:00
waynewyang
34fcbc0bf2
safeguard for multisig actor
2019-10-24 17:13:38 +08:00
whyrusleeping
acb7d57794
fix handling of actor not found for balance checks
2019-10-24 15:55:00 +08:00
whyrusleeping
2a49005ed6
cache block message cids to make blocksync cheaper
2019-10-24 14:24:58 +08:00
Łukasz Magiera
cdd91914b9
on chain deals: Actually set DataSize
2019-10-23 20:04:07 +02:00
Łukasz Magiera
fabd074165
on chain deals: Deals make it to the chain
2019-10-23 19:39:14 +02:00
Łukasz Magiera
187317a004
sync: Do some things in parallel in ValidateBlock
2019-10-23 16:45:03 +02:00
Łukasz Magiera
61e14d0f4c
on chain deals: Fix some serialization bugs
2019-10-23 14:59:57 +02:00
Łukasz Magiera
1d1f468c98
peer manager: Disable in tests
2019-10-23 13:02:00 +02:00
whyrusleeping
fc7c7ddd97
Initial pass at a peer manager
2019-10-23 12:47:22 +02:00
Łukasz Magiera
bd77bba676
on chain deals: Improve some errors
2019-10-23 12:44:00 +02:00
Łukasz Magiera
8e7e5d3085
on chain deals: Fix deal state serialization
2019-10-23 12:44:00 +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
47d92d4a11
wip
2019-10-23 12:44:00 +02:00
Łukasz Magiera
bafb7e8cfa
on chain deals: deal types cbor-gen
2019-10-23 12:44:00 +02:00
Łukasz Magiera
99ef51a642
on chain deals: Fix build
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
7420dd668e
on chain deals: use cid bytes for PieceRef
2019-10-23 12:44:00 +02:00
Łukasz Magiera
6bade2eb23
on chain deals: More actor methods
2019-10-23 12:44:00 +02:00
Łukasz Magiera
c41dd4efeb
actora: register storagemarket
2019-10-23 12:44:00 +02:00
Łukasz Magiera
8638cd25f5
actors: implement sma.PublishStorageDeals
2019-10-23 12:44:00 +02:00
Łukasz Magiera
fcf928ec76
actors: Initial structure for StorageMarketActor
2019-10-23 12:44:00 +02:00
Jakub Sztandera
b9627293e0
Merge pull request #443 from waynewyang/fix-VM-TransferFunds-method
...
Delete TransferFunds Method
2019-10-23 18:41:23 +09:00
Łukasz Magiera
c066b47843
Merge pull request #463 from filecoin-project/feat/better-resync
...
use blocks we have locally anytime we need them
2019-10-23 11:34:30 +02:00
whyrusleeping
46985246a2
use blocks we have locally anytime we need them
2019-10-23 16:18:07 +08:00
waynewyang
fab4777b8f
Delete TransferFunds Method
2019-10-23 13:22:03 +08:00
waynewyang
7b6d67ec1e
Check if fromaddress equal workaddress when CommitSector
2019-10-23 11:51:48 +08:00
waynewyang
d265f4a04f
fix method:InitActorState.AddActor
2019-10-23 10:47:45 +08:00
waynewyang
db41aed2b8
fix annotation for Initactor.Exec
2019-10-23 10:39:45 +08:00
Jakub Sztandera
7532f92c98
Cleanup GetBalance call and warn if actor does not exist
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-22 21:58:51 +02:00
waynewyang
f99c11e048
fix method: VM.send
2019-10-22 20:37:04 +08:00
waynewyang
2d4c5daa93
fix annotation for vm
2019-10-22 16:14:10 +08:00
Łukasz Magiera
1b1c614301
Merge pull request #430 from filecoin-project/feat/events-always-revert
...
events: always call revert in CahinAt
2019-10-21 10:10:59 +02:00
Łukasz Magiera
629717dffb
events: always call revert in CahinAt
2019-10-21 09:54:36 +02:00
waynewyang
e25f5c755a
fix:IsBuiltinActor
2019-10-21 11:06:59 +08:00
Jakub Sztandera
237df4cc44
New big rats and set the precision to 18 (atto = 1e-18)
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-18 23:45:15 +09:00
whyrusleeping
03d847b8a6
add nicer printing and parsing of filecoin values
2019-10-18 21:31:45 +09:00
whyrusleeping
63b81af23e
handle changing default address
2019-10-18 20:42:00 +09:00
Jakub Sztandera
92b145ec4d
Don't set fields if UnlockDuration is 0
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-18 16:08:19 +09:00
Jakub Sztandera
737f056c12
Rebuild types
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-18 16:06:41 +09:00
Jakub Sztandera
274673d9c6
Add linear vesting to multisig
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-18 14:01:04 +09: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
279c0e2519
Merge pull request #399 from filecoin-project/feat/wallet-default
...
Wallets record default address in keystore
2019-10-17 16:52:23 +02:00
whyrusleeping
d818e20df5
Wallets record default address in keystore
2019-10-17 19:18:40 +09:00
whyrusleeping
7464cb5803
Now! Thats what I call tracing! Vol 4
2019-10-17 09:51:13 +09:00
Łukasz Magiera
e5909de3a4
Merge pull request #354 from filecoin-project/feat/tracing-3
...
Moar tracing!
2019-10-16 14:10:36 +02:00
whyrusleeping
ab6ef85b6d
More tracing!
2019-10-16 19:24:33 +09:00
whyrusleeping
5a8d11b85e
add format flag to chain list command
2019-10-16 17:01:41 +09:00
Łukasz Magiera
0f8b450880
Fix lotus state power
2019-10-15 16:59:31 +02:00
Łukasz Magiera
b4c02adebf
Fix
2019-10-15 15:04:01 +02:00
Łukasz Magiera
10dbf6e9d4
Fix sync_test
2019-10-15 14:32:33 +02:00
Łukasz Magiera
4acdb10bf6
Make weight function more spec compliant
2019-10-15 14:31:34 +02:00
Łukasz Magiera
29f26cb8d1
Compiling with the new weight func
2019-10-15 14:31:34 +02:00
Łukasz Magiera
7d471a6ce3
Revert "wip"
...
This reverts commit 859256dadbe42f44b7ac77a4b99b56393f52e127.
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
007bdfaf42
wip
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
Łukasz Magiera
9a238b7d01
Merge pull request #370 from filecoin-project/fix/chain-sync-test-fail
...
Fix chain sync test flakiness
2019-10-15 14:30:47 +02:00
whyrusleeping
aa644fcbbb
call sync directly during submitblock
2019-10-15 21:19:10 +09:00
whyrusleeping
7fbd0a5e8e
Dont use aerrors.Escalate unless you really mean it
2019-10-15 14:37:43 +09:00
Łukasz Magiera
44f50d3578
events: Pass non-null ts in ChainAt immediate call
2019-10-15 04:20:57 +02:00
Łukasz Magiera
fa6bf55bf5
Merge pull request #371 from filecoin-project/fix/refmt-big-zero
...
Fix zero handling in refmt transfrom
2019-10-15 02:08:28 +02:00
Łukasz Magiera
67c7dc46ee
Merge pull request #363 from filecoin-project/feat/no-empty-addr
...
prevent serialization of empty addresses
2019-10-15 02:04:23 +02:00
Jakub Sztandera
0add5bbb8d
Fix zero handling in refmt transfrom
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-14 17:00:22 +02:00
whyrusleeping
7c26e3c35f
WIP: ensure blocks make it into repo before pushing to pubsub
2019-10-14 23:21:37 +09:00
Jakub Sztandera
4c579acdef
Fix panic if there is a panic in the hanlder function
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-14 15:38:47 +02:00
whyrusleeping
961caa237d
prevent serialization of empty addresses
2019-10-14 20:53:20 +09:00
whyrusleeping
62057a8929
reject messages with bad 'To' addresses
2019-10-14 12:28:19 +09:00
Łukasz Magiera
7e6e18c07a
Merge pull request #356 from filecoin-project/fix/not-found-log
...
remove not found log, its okay
2019-10-14 00:56:07 +02:00
whyrusleeping
097e569792
remove not found log, its okay
2019-10-13 22:16:01 +09:00
whyrusleeping
5a733f282e
Some simple measures to avoid mpool DoSing
2019-10-13 22:03:15 +09:00
Jakub Sztandera
68db93b62e
More if not needed
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-13 03:08:05 +02:00
whyrusleeping
c63eca1e45
if not needed
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-13 03:08:05 +02:00
whyrusleeping
45737f8a51
add more tracing spans
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-13 03:07:55 +02:00
Łukasz Magiera
704f06761a
Merge pull request #347 from filecoin-project/feat/list-miners-cmd
...
implement commands to list actors and miners
2019-10-12 09:10:19 +02:00
Łukasz Magiera
663d0adc23
Merge pull request #339 from filecoin-project/feat/vm-transfer-cleanup
...
some cleanup of vm transfer logic to make juan happier
2019-10-12 09:04:44 +02:00
whyrusleeping
80d306de14
check transfer amounts are positive values
2019-10-12 15:57:49 +09:00
whyrusleeping
edcf47ff31
implement commands to list actors and miners
2019-10-12 15:45:48 +09:00
Łukasz Magiera
3481048431
fix events deadlock when chaining calls
2019-10-12 01:13:07 +02:00
whyrusleeping
a56e786e36
some cleanup of vm transfer logic to make juan happier
2019-10-11 18:13:04 +09:00
whyrusleeping
7eefa4e577
use faster bls code
2019-10-11 12:26:54 +09:00
Łukasz Magiera
4334e4d93d
Merge pull request #333 from filecoin-project/feat/th-names
...
townhall: Node names
2019-10-11 04:55:33 +02:00
Łukasz Magiera
79f10078ae
Merge pull request #325 from filecoin-project/feat/logs-elk
...
Integrate log collection
2019-10-11 04:52:26 +02:00
Łukasz Magiera
387adae115
townhall: Node names
2019-10-11 04:45:45 +02:00
Łukasz Magiera
177a876cf2
Merge pull request #323 from filecoin-project/feat/tracing-1
...
add some more tracing to chain sync
2019-10-11 04:19:12 +02:00
whyrusleeping
52fd55a379
import order
2019-10-11 11:17:24 +09:00
Jakub Sztandera
e14e0ae762
Use the same key
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-11 02:02:54 +02:00
Jakub Sztandera
49e3fe39f8
Structure logs
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-11 02:00:04 +02:00
Łukasz Magiera
1a5bf0afe3
chainstore: execute reorg ops in separate goroutine
2019-10-11 01:50:49 +02:00
Łukasz Magiera
4c5157d270
Lotus Townhall
2019-10-10 14:02:43 +02:00
whyrusleeping
3f342d7ae2
add some more tracing to chain sync
2019-10-10 20:13:26 +09:00
Łukasz Magiera
356c1cfab0
Merge pull request #321 from filecoin-project/feat/chain-set-head
...
expose command to set chainstore head
2019-10-10 06:00:54 +02:00
whyrusleeping
acec79cf3f
expose command to set chainstore head
2019-10-10 12:50:50 +09:00
Łukasz Magiera
f8ccbe92c1
Merge pull request #319 from filecoin-project/fix/bad-expansion
...
don't add bad blocks to tipsetcache
2019-10-10 05:50:03 +02:00
Whyrusleeping
b964a8d3c0
Update chain/sync.go
...
Co-Authored-By: Łukasz Magiera <magik6k@users.noreply.github.com>
2019-10-10 12:37:29 +09:00
whyrusleeping
85684ba7e2
don't add bad blocks to tipsetcache
2019-10-10 12:04:10 +09:00
Łukasz Magiera
30d7a714a9
miner: don't mine on the same base twice
2019-10-10 02:39:53 +02:00
Łukasz Magiera
289332c497
Merge pull request #308 from filecoin-project/fix/tostoragebls
...
Fix ToStorageBlock on BLS msgs
2019-10-09 15:08:26 +02:00
Łukasz Magiera
e0d935530f
Fix ToStorageBlock on BLS msgs
2019-10-09 14:57:48 +02:00
Łukasz Magiera
5448ba6a3c
Merge pull request #305 from filecoin-project/feat/bad-block-cache
...
Implement cache for bad blocks
2019-10-09 14:56:18 +02:00
whyrusleeping
67058aee53
make it a const
2019-10-09 21:55:27 +09:00
whyrusleeping
bb974d23e6
arc cache is threadsafe
2019-10-09 21:50:07 +09:00
whyrusleeping
b333247fab
switch to a bounded cache
2019-10-09 21:23:45 +09:00
whyrusleeping
8e51ab8375
don't bother looking in genesis block for messages
2019-10-09 17:56:47 +09:00
whyrusleeping
da08ab9fd8
Implement cache for bad blocks
2019-10-09 17:50:57 +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
14c4a8bee6
implement looking in the past for messages
2019-10-09 09:33:18 +02:00
whyrusleeping
84985ef96f
add tipset message was executed in back to waitmsg call
2019-10-09 09:30:12 +02:00
Łukasz Magiera
b8bc54fd5b
Merge pull request #296 from filecoin-project/feat/verify-block-msg-signatures
...
Feat/verify block msg signatures
2019-10-09 09:25:21 +02:00
Łukasz Magiera
7d87a42a67
Apply suggestions from code review
...
Don't panic
2019-10-09 09:24:58 +02:00
whyrusleeping
19b16077fe
remove VDFs from tickets
2019-10-09 13:38:59 +09:00
whyrusleeping
249074761c
verify message signatures during block validation
2019-10-09 11:58:49 +09:00
whyrusleeping
68c1170250
compute signatures over msg cids instead of raw bytes
2019-10-09 10:32:08 +09:00
whyrusleeping
80b40e7e70
make magik happier
2019-10-08 18:46:36 +09:00
whyrusleeping
b40de6995b
implement key import and export
2019-10-08 18:17:03 +09:00
Whyrusleeping
3c68e66b4c
Merge pull request #285 from filecoin-project/fix/event-null-blocks
...
events: Handle null blocks correctly
2019-10-08 11:34:01 +09:00
Whyrusleeping
d71b8bd8ba
Merge pull request #290 from filecoin-project/fix/sync-forked-chain
...
Fix/sync forked chain
2019-10-07 18:39:56 -06:00
Whyrusleeping
c6fbf3b704
Merge pull request #281 from filecoin-project/fix/vm-log
...
Fix vm log
2019-10-07 18:32:14 -06:00
whyrusleeping
983ae22a03
remove outdated comment
2019-10-08 09:30:20 +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
Łukasz Magiera
27411f7e3a
events: Give non-null tipsets in handlers
2019-10-06 01:43:10 +02: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
Jakub Sztandera
9e74b19da0
Improve logs
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-05 17:59:35 +02:00
Łukasz Magiera
d0850b8c2f
events: Change null block handling
2019-10-05 01:49:18 +02:00
Łukasz Magiera
1cfe67cb59
Make sure that tipsetcache get works when tail ts in null
2019-10-05 01:26:36 +02:00
Łukasz Magiera
7170e1893f
events: Handle null blocks correctly
2019-10-05 00:43:04 +02:00
Jakub Sztandera
991ab167fe
Fix vm log
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-04 22:57:59 +02:00
whyrusleeping
f9ac86ab00
the doneset is for dropping sectors
2019-10-04 12:30:30 -06:00
Jakub Sztandera
211444059c
Sort the result of All in bitfiled
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-04 20:18:11 +02:00
Whyrusleeping
b6d50c07c8
Merge pull request #276 from filecoin-project/fix/block-printing
...
improve accuracy of block printing with getblock
2019-10-04 09:39:47 -06:00
whyrusleeping
27f120bfce
improve accuracy of block printing with getblock
2019-10-03 13:22:21 -07:00
Whyrusleeping
c0a3e675e4
Merge pull request #275 from filecoin-project/feat/cleanup-create-block
...
clean up create block
2019-10-03 14:05:03 -06:00
whyrusleeping
ed64b87ce2
clean up create block
2019-10-03 13:45:14 -06:00
Jakub Sztandera
9b90022c50
Improve logs and error messages
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2019-10-03 20:20:29 +02:00
whyrusleeping
10a5dd15f7
fix a couple small bugs
2019-10-02 15:12:37 -06:00
whyrusleeping
8903fb4f19
handle looking for messages executed by the genesis block
2019-10-02 14:49:38 -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
65def6cc58
handle getting state for genesis block
2019-10-02 12:00:08 -06:00
whyrusleeping
1ec5c61015
fix block reward application
2019-10-02 09:50:10 -06:00
whyrusleeping
b9cc6f61b6
rebase and fix tests
2019-10-01 15:34:53 -06:00
whyrusleeping
8f203bc29b
WIP: refactor waitformsg to use parent tipset inclusion
2019-10-01 15:21:01 -06:00
whyrusleeping
1419031f1e
switch to parent state roots
2019-10-01 15:21:01 -06:00
whyrusleeping
317e83a410
fix sync tests by sorting tipsets
2019-10-01 12:47:42 -06:00
whyrusleeping
74ad58881b
use new cbor-gen code with better errors
2019-10-01 09:53:39 -06:00
Łukasz Magiera
bc7faec5d2
Merge pull request #248 from filecoin-project/feat/sync-state-cmd
...
Add a command to inspect sync state progress
2019-09-30 18:04:59 -06:00
Łukasz Magiera
1721c84ab5
Merge pull request #251 from filecoin-project/fix/events-crash
...
Event system fixes
2019-09-30 18:03:50 -06:00
whyrusleeping
798b1ebde9
Add some more error annotations
2019-09-30 17:55:35 -06:00
Łukasz Magiera
d7562d8716
tscache: fix storage fetch
2019-10-01 00:55:59 +02:00
Łukasz Magiera
9fe0c3ec68
wip
2019-10-01 00:38:07 +02:00
Łukasz Magiera
b63aa91660
wip
2019-10-01 00:37:01 +02:00
whyrusleeping
0d628516ed
make it a type in api
2019-09-30 16:29:40 -06:00
whyrusleeping
af18cbac53
Add a command to inspect sync state progress
2019-09-30 15:06:47 -06:00
Łukasz Magiera
6c1fbf7c5c
chain: Fix voucher increment math
2019-09-30 20:20:44 +02: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
76ab2e8a7b
De-javify
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-09-28 00:02:02 +02:00
Jakub Sztandera
b90f45fa60
Change build params
...
License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
2019-09-27 23:42:12 +02:00
Whyrusleeping
b611637652
Apply suggestions from code review
...
Co-Authored-By: Łukasz Magiera <magik6k@users.noreply.github.com>
2019-09-27 13:47:10 -07:00
Łukasz Magiera
e0632a93ab
Share ProvingPeriodEnd math
2019-09-27 21:47:47 +02:00
Łukasz Magiera
ba0559ae58
events: Fix tipSetCache at higher heights
2019-09-27 14:35:09 +02:00
Łukasz Magiera
2874022251
jsonrpc: Channel buffeering
2019-09-27 13:37:44 +02:00
whyrusleeping
639139795b
remember why the go big math library works the way it does
2019-09-26 16:09:10 -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
Łukasz Magiera
1024812559
storageminer: Update post scheduling
2019-09-26 23:32:47 +02:00
Łukasz Magiera
4305824be7
miner actor: Change PPE logic in submitPost
2019-09-26 23:32:47 +02:00
Whyrusleeping
ad101640ad
Merge pull request #236 from filecoin-project/feat/miner-filter-mpool
...
Feat/miner filter mpool
2019-09-26 14:27:14 -07:00
whyrusleeping
d82a1f8184
fix nonce checking and also check cumulative balance
2019-09-26 13:47:34 -07: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
30da7d2ba3
Merge pull request #234 from filecoin-project/feat/bigint-no-tag
...
serialize big ints without a tag
2019-09-26 16:29:43 +02:00
whyrusleeping
af0eb34ec6
make chain sync faster by turning up blocksync window
2019-09-26 00:22:45 -07:00
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