Commit graph

66 commits

Author SHA1 Message Date
atvanguard
1651575805 remove page param 2020-05-20 14:15:41 +05:30
atvanguard
2675dc59e9 fetch state events with from_id/to_time 2020-05-20 13:43:40 +05:30
atvanguard
2526aa8530 wip 2020-05-20 10:08:30 +05:30
atvanguard
3236e423d2 dont return a pointer from LastStateSyncTime 2020-05-19 21:42:32 +05:30
Arpit Agarwal
89248d7116
Update consensus/bor/bor.go
Co-authored-by: Jaynti Kanani <jdkanani@gmail.com>
2020-05-19 21:34:35 +05:30
atvanguard
742c2104af alter the fetch logic a bit 2020-05-19 21:16:37 +05:30
atvanguard
fa52ce61f7 sort state events acc to id 2020-05-19 12:05:29 +05:30
atvanguard
ba70b74fb7 fetch events from [lastSync, (block-sprint).Time) 2020-05-19 09:47:54 +05:30
atvanguard
0e8b5ca4b7 minor: separate path, query params with FetchWithRetry 2020-05-18 23:36:16 +05:30
atvanguard
8f47b3945e test: Handle 204 and add test for new deposit mechanism 2020-05-18 19:26:42 +05:30
atvanguard
fa0266a347 merge develop into mew-deposits 2020-05-18 18:51:29 +05:30
atvanguard
9a56de6d84 dev: cleanup isValidatorAction logic 2020-05-17 17:33:59 +05:30
atvanguard
4be5477f64 dev: cleanup comments 2020-05-17 17:28:55 +05:30
atvanguard
868dc81c8a new: New fetch State sync logic 2020-05-17 17:24:09 +05:30
atvanguard
71c3bf757c refactor: Tests + add test for OutOfTurnSign 2020-05-14 16:28:45 +05:30
atvanguard
c27b8b7801 new: Add wiggle to block time 2020-05-14 16:28:45 +05:30
atvanguard
9f6df9ade0 dev: Remove concurrent seal check 2020-05-13 20:11:13 +05:30
Arpit Agarwal
0f8d3b1006
fix: Check validator bytes at first block of sprint (MAT-1311) (#56)
* Check validator bytes at first block of sprint

* not required to get parent again

* fix tests

* fix build error
2020-05-13 14:08:21 +05:30
Arpit Agarwal
d1ea515af1
chg: Cancel active sealing op when a new chain segment is received (MAT-1116) (#54)
* dev: Fix out-of-turn signing log statement

* dev: Cancel active sealing op when a new chain segment is received

* remove debug statement and return value

* minor: no need to use a channel

* Fix race condition in shouldSeal channel

* Info -> Debug statement
2020-05-11 17:00:33 +05:30
atvanguard
5bd72779d5 new: Add GetRootHash bor api method 2020-05-05 09:45:57 +05:30
atvanguard
f02da00855 chg: dev: errMismatchingSprintValidators 2020-04-29 10:55:27 +05:30
atvanguard
7e4e2b722c test: Add tests for GetSignerSuccessionNumber 2020-04-28 11:01:37 +05:30
atvanguard
52dbf54808 refactor: Fix minor issues from audit (2.36/37/40/41) 2020-04-27 08:57:03 +05:30
atvanguard
b00299ca13 fix: Validator list could be invalid making the node crash (2.13) 2020-04-21 09:50:44 +05:30
Arpit Agarwal
d8c07f302a
fix: Check block delay in verifyHeaders / remove empty chainId check (MAT-1080, MAT-1089) (#49)
* fix: Check block delay in verifyHeaders

* Pull block time check out of if condition

* fix: Always check chainId equality in heimdall response
2020-04-20 11:53:05 +05:30
Arpit Agarwal
4401581ef1
dev: Provide Heimdall URL as flag instead of in genesis (#46) 2020-04-07 10:56:29 +05:30
Arpit Agarwal
7183e217c0
fix: ethClient.SubscribeNewDeposit should accept StateData channel (#44)
* ethClient.SubscribeNewDeposit should accept StateData channel

* remove redundant function

* Fix compilation error
2020-04-06 11:40:14 +05:30
Sayli Patil
260243cf88
MAT-865: Add subscribe deposit event filter (#21)
* add eth_depositById rpc method

* add sample depositById test

* change ethereum to bor

* add subscription for new deposit data

* create channel to listen new state change

* push state data to subcribed channel

* apply filter on deposit events sub

* remove unused methods

* Fix: no filter

* Remove unused method

* revert changes

* Fix: RPC port

* refactor and cleanup

* Fix: SubscribeStateEvent

* remove unused import

* Resolve comments

Co-authored-by: Arpit Agarwal <93arpit@gmail.com>
2020-04-06 09:52:21 +05:30
Jaynti Kanani
ae82c4cd37
fix polluted path and check data length for validation action 2020-03-25 18:41:16 +05:30
atvanguard
d56c75d90a Test isValidatorAction after span changes 2020-03-18 14:48:57 +05:30
atvanguard
2ea69833dd Cleanup debug statements 2020-03-18 14:48:57 +05:30
atvanguard
e6de60b80e TestCommitSpan finally works 2020-03-18 14:48:57 +05:30
atvanguard
2d0b9ea63d try to use same statedb 2020-03-18 14:48:57 +05:30
atvanguard
9dd4e4b0f9 Refactor HeimdallClient + commitSpan test 🚧 2020-03-18 14:48:57 +05:30
atvanguard
57ccdb5482 Revert unintended changes 2020-03-18 14:48:57 +05:30
atvanguard
f7e58d6030 Test for IsValidatorAction 2020-03-18 14:48:57 +05:30
atvanguard
1d5b263362 WIP 2020-03-18 14:48:57 +05:30
atvanguard
a3e01638a4 Test isValidatorAction 🚧 2020-03-18 14:48:57 +05:30
atvanguard
27fc66ef24 Add bor.isValidatorAction and call it while validating underpriced tx 2020-03-18 14:48:57 +05:30
Jaynti Kanani
cfac491edb
check bor chain id for commit span and state 2020-02-15 15:36:53 +05:30
vaibhavchellani
039c932fc7 removed conflicts 2019-12-04 18:29:51 +05:30
vaibhavchellani
783d094a28 log usage standardised 2019-12-04 14:18:25 +05:30
Jaynti Kanani
2f0b5ce143
increase backup limit 2019-12-03 22:55:30 +05:30
Jaynti Kanani
4b452d8a3a
retry span and states in bor 2019-12-03 16:47:28 +05:30
Jaynti Kanani
0f172fd0eb
change package name 2019-11-12 13:17:12 -05:00
Jaynti Kanani
dc16740906
fix errors and refactoring 2019-11-05 12:12:10 +05:30
Jaynti Kanani
0d86eed2c3
add method to commit states 2019-10-27 01:50:57 +05:30
Jaynti Kanani
a4d92f8e30
span sync done right 2019-10-25 20:11:07 +05:30
Jaynti Kanani
521e7e295a
commit span WIP 2019-10-25 15:02:04 +05:30
Jaynti Kanani
26ce6db06d
WIP span sync 2019-10-24 13:07:50 +05:30