Jaynti Kanani
c5a015a8a4
fix: make data fetch more robust
2020-05-18 11:02:43 +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
67c29d7ce3
chg: Add GetRootHash to ethClient / use uint64
2020-05-07 20:17:15 +05:30
atvanguard
50c0b662cf
Remove once.do
2020-05-06 17:14:53 +05:30
atvanguard
54bbdff1e4
Initialize apiCache in once.do
2020-05-06 16:35:12 +05:30
atvanguard
bbe6522f35
new: Add GetRootHash to api backend
2020-05-05 14:45:56 +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
54609b6168
refactor: Bubble up error in updateTotalVotingPower instead of panic (2.29)
2020-04-27 08:56:55 +05:30
atvanguard
18266b0d7a
minor: Throw error if proposer/signer are not in the validator set (2.28)
2020-04-22 12:42:03 +05:30
atvanguard
bfab1d932d
dev: rename CompareProposerPriority to Cmp, add nil check (2.27)
2020-04-21 11:31:45 +05:30
atvanguard
48d6d76d18
minor: Remove the redundant validator.Bytes() func, fix comments (2.26)
2020-04-21 10:29:59 +05:30
atvanguard
b00299ca13
fix: Validator list could be invalid making the node crash (2.13)
2020-04-21 09:50:44 +05:30
atvanguard
122a2304db
minor: Run gofmt -w .
2020-04-20 20:34:58 +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
Jaynti Kanani
1a360aeb9e
fix build once and for all + go mod tidy
2020-03-20 19:09:19 +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
atvanguard
5f96b06add
Send key while logging error msg
2020-03-06 16:00:04 +05:30
Jaynti Kanani
14ffde834c
Merge pull request #20 from maticnetwork/develop
...
Develop
2020-02-17 19:52:49 +05:30
atvanguard
04f5abcc13
Expose API methods
2020-02-17 18:56:23 +05:30
atvanguard
4037b09968
Add GetCurrentProposer API call 🚧
2020-02-17 11:32:15 +05:30
Jaynti Kanani
cfac491edb
check bor chain id for commit span and state
2020-02-15 15:36:53 +05:30
Jaynti Kanani
b343bd10c6
fix log for retry
2020-02-10 19:30:09 +05:30
Jaynti Kanani
e36fb38183
remove unwanted comments
2020-02-08 02:48:02 +05:30
Jaynti Kanani
36ff50845e
use hex encoding for record bytes
2020-01-01 17:12:34 +05:30
Jaynti Kanani
bd9cd503a1
fix merge conflict
2019-12-04 22:28:21 +05:30
vaibhavchellani
039c932fc7
removed conflicts
2019-12-04 18:29:51 +05:30
vaibhavchellani
088b57ebea
removed fmt log from snapshot
2019-12-04 14:21:12 +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
29e8a42df6
verify before validator set change at sprint end
2019-12-03 18:50:30 +05:30