Commit Graph

584 Commits

Author SHA1 Message Date
Ł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