Commit Graph

195 Commits

Author SHA1 Message Date
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
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
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
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
22851df145
Undo change in events_test
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-02 18:46:43 +02:00
Jakub Sztandera
96ade5f2dd
Cleanup more lint warnings
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-02 18:38:41 +02:00
Jakub Sztandera
5605aae269
Fix even more lint warnings
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-06-02 16:29:39 +02:00
Jakub Sztandera
d6615b6286
Cleanup many lint warnings
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-05-27 22:53:20 +02:00
Łukasz Magiera
b90666b293 miner: optimize SelectMessages 2020-05-15 19:30:31 +02:00
Łukasz Magiera
4e13d284b7 events: Fix revert+apply of msg execution, but not the message 2020-05-14 00:48:36 +02:00
hannahhoward
bbd2fbc434 test(events): add test to demo issue 2020-05-13 12:10:56 -07:00
Łukasz Magiera
ba389598ee Cleanup build package 2020-05-12 19:59:28 +02:00
Łukasz Magiera
1ade0e7b92 events: Fix called with confidence on null round 2020-05-08 10:31:23 +02:00
hannahhoward
e5a0252126 test(events): add test to repo issue
Add a test that shows that the called function is never hit above confidence if the scheduled
trigger is at a null tipset
2020-05-07 22:07:23 -07:00
Jeromy
8ee296d130 fix tests 2020-04-23 15:53:24 -07:00
Jeromy
ef1d485c6e move head change type out of chainstore package 2020-04-23 15:28:59 -07:00
Jeromy
088d693eea code review changes 2020-03-25 12:13:09 -07:00
Jeromy
f1dbd35407 change genesis fields to match interop 2020-03-21 15:25:00 -07:00
whyrusleeping
cf2eefdfbe Fix up client storage deal matcher 2020-02-28 16:05:56 -08:00
Łukasz Magiera
cb09e48e8c Some test fixes 2020-02-26 10:05:22 +01:00
Łukasz Magiera
0a9e0acc6f types: Drop some redundant alias types 2020-02-25 22:09:22 +01:00
Łukasz Magiera
d787aa5007 Merge branch 'testnet/3' into feat/specs-actors 2020-02-24 18:32:02 +01:00
Łukasz Magiera
917df9a5b8 More unified randomness handling 2020-02-23 21:00:47 +01:00
whyrusleeping
97425ea1c9 fix some tests 2020-02-22 23:49:15 -08:00
Aayush Rajasekaran
60970008c8 Re: #1250: API methods should receive TipSetKeys, not TipSets, as input 2020-02-17 19:53:43 -05:00
Łukasz Magiera
c0ed0dda8e specs-actors: Fis some test compilation errors 2020-02-10 20:16:36 +01:00
Łukasz Magiera
13435aebdc Spec Actors integration 2020-02-08 03:18:32 +01:00
Jakub Sztandera
1ed62628a7
Update go-log to v2
Signed-off-by: Jakub Sztandera <kubuxu@protocol.ai>
2020-01-08 20:22:31 +01:00
hannahhoward
8418464d91 refactor(address): use extracted address library
Switch to using extracted address library
2020-01-07 14:53:27 +01:00
Łukasz Magiera
631a9cd3b6 events: Fix double apply in events.Called as well 2019-12-04 13:58:22 +01:00
Łukasz Magiera
7d80cbfbdf events: Fix double trigger in CalledAt 2019-12-04 13:41:22 +01:00
whyrusleeping
cb19ca499e add extra check for apply being called iff revert happens 2019-12-03 21:24:17 -08:00
whyrusleeping
c456ef4905 reproduce events double trigger issue in test 2019-12-03 21:21:31 -08:00
Łukasz Magiera
6127d82c7b events: allow get on empty ts cache 2019-12-03 18:41:31 +01:00
Łukasz Magiera
f43ff07ab3 events: Allow revert on empty cache 2019-12-03 18:38:37 +01:00
Łukasz Magiera
d5b94884c8 Buch of lint fixes 2019-12-02 13:51:16 +01:00
Łukasz Magiera
23e0008b81 Merge remote-tracking branch 'origin/master' into feat/election-post 2019-11-27 13:31:44 +01:00
Łukasz Magiera
3cf97c4278 events: Fix nnoce check in CheckMsg 2019-11-24 20:18:49 +01:00
Łukasz Magiera
c7b34153fb more mpooland post sched fixes 2019-11-24 17:35:50 +01:00
Łukasz Magiera
37792b149f sync: fix some issues 2019-11-20 20:49:29 +01:00
whyrusleeping
d57f048c2c reject blocks with nil signatures 2019-11-20 11:14:08 -06:00
Łukasz Magiera
0a6a0e5e39 Address review 2019-11-20 18:00:05 +01:00
Łukasz Magiera
ddf2e05dd0 post: More correct 'wait' logic 2019-11-20 18:00:05 +01:00
whyrusleeping
f8eabd3db4 Refactor mining logic to match specs ticket chain 2019-11-20 10:52:36 -06:00
Łukasz Magiera
ab8407fb43
Merge pull request #636 from filecoin-project/fix/reorg-ops-order
fix ordering of block applies in reorg ops
2019-11-20 01:09:53 +01:00
Łukasz Magiera
582f8f9a14 events: Fix Called handler 2019-11-19 23:07:58 +01:00
whyrusleeping
ba5effe1f6 don't swap order in tests anymore 2019-11-19 15:54:39 -06:00
Łukasz Magiera
f52d9de4dd events: MatchFuncs for Called 2019-11-19 16:51:12 +01:00
whyrusleeping
ccfa03138d fix ordering of block applies in reorg ops 2019-11-18 12:18:59 -06:00
Łukasz Magiera
f3ae7eb7a3 events: Test 2 block tipsets with duplicated message 2019-11-08 21:25:02 +01:00
Łukasz Magiera
8c39486736 some import fixes 2019-11-08 21:11:56 +01:00
Łukasz Magiera
6cc360e0f7 events: Execute Called handlers in the correct tipset 2019-11-07 10:02:29 +01:00
Łukasz Magiera
4c4c2095a6 events: Basic tracing 2019-11-05 15:36:44 +01:00
Łukasz Magiera
eb28c45c00 events: Plumb context to callbacks 2019-11-05 15:03:59 +01:00
Łukasz Magiera
629717dffb events: always call revert in CahinAt 2019-10-21 09:54:36 +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
44f50d3578 events: Pass non-null ts in ChainAt immediate call 2019-10-15 04:20:57 +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
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
Łukasz Magiera
3481048431 fix events deadlock when chaining calls 2019-10-12 01:13:07 +02:00
whyrusleeping
14c4a8bee6 implement looking in the past for messages 2019-10-09 09:33:18 +02:00
Łukasz Magiera
27411f7e3a events: Give non-null tipsets in handlers 2019-10-06 01:43:10 +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
whyrusleeping
b9cc6f61b6 rebase and fix tests 2019-10-01 15:34:53 -06:00
whyrusleeping
1419031f1e switch to parent state roots 2019-10-01 15:21:01 -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
Ł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
Ł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
c40f89f2a9 Almost working PoSt submission 2019-09-19 18:17:54 +02:00
Łukasz Magiera
689b1e5b3c events: Safer restarting in listenHeadChanges 2019-09-18 20:07:39 +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
Ł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