Commit graph

13888 commits

Author SHA1 Message Date
Pratik Patil
d53c2e7902
Block stm miner dependency (#561)
* added support for dependencies (executor_tests)

* added a function to get dependency map

* getting all dependencies in the GetDep function

* updated GetDep function

* changed the type of AllDeps

* added a function to get dependency map

* updated GetDep function

* generate and get dependencies from block producer

* optimized getDep function

* bug fix regarding txn index and dep structure

* fixed gas bug

* optimized getDep function

* tests updated/added

* few updates regarding dependencies

* added channel to calculate the dependencies in a separate go routine

* minor changes in the executor which uses latest changes of dependecies + removed metadata flag/argument

* Use channel when metadata is available

* small bug fix

* getting reads and writes only when the transaction succeeds

* fixed bug in adding dependencies

* updated logic for delay/not delay

* bug fix (shouldDelayFeeCal) in parallel state processor

* lint fix

* using EnableMVHashMap flag

* fixed worker and stateProcessor and removed SetMVHashMapNil fumction from stateDB

* addredded few comments and fixed bug in executor tests

* commented executor tests with metadata (panic: test timed out after 5m0s)

* added a check to check len(mvReadMapList) > 0 in miner

* addressed comments, minor refactoring in dag.go

* moved blockContext out of Execute and adding it in execution task

* removed Author() from Settle() and added  in execution task

* not calling block.Header() again and again, using  instead

* removed EnableMVHashMap flag, and updated applyTransaction function

* addressed comments

* added unit test to check dependencies in the block header

Co-authored-by: Jerry <jerrycgh@gmail.com>
2022-12-23 09:14:09 +05:30
Pratik Patil
96e66e5256 Merge branch 'develop' of https://github.com/maticnetwork/bor into block-stm 2022-11-21 17:00:12 +05:30
Raneet Debnath
a3e7769b5b
Merge pull request #583 from maticnetwork/raneet10/pos-535
Speed up smoke test
2022-11-18 20:06:37 +05:30
Raneet Debnath
296a9c4ff5 fix: incorrect condition 2022-11-18 18:58:52 +05:30
Raneet Debnath
f3573f086d fix: timer condition 2022-11-18 18:38:03 +05:30
Raneet Debnath
1da5b36da9 new: timer 2022-11-18 16:18:34 +05:30
Raneet Debnath
87c54fa7be chg: remove repetitive logs 2022-11-18 15:00:46 +05:30
Raneet Debnath
b2a453b115 chg: increase timeout 2022-11-18 14:04:34 +05:30
Raneet Debnath
dfa051483f Merge branch 'develop' of https://github.com/maticnetwork/bor into raneet10/pos-535 2022-11-17 18:23:16 +05:30
Raneet Debnath
1b8ef5059f cleanup 2022-11-17 18:20:53 +05:30
Raneet Debnath
245b327129 sq paranthesis 2022-11-17 17:13:12 +05:30
Raneet Debnath
ee2009e0c5 op 2022-11-17 16:17:35 +05:30
Raneet Debnath
529e81bd92 bool types 2022-11-17 15:01:29 +05:30
Raneet Debnath
c6079a4d4e chg parenthesis 2022-11-17 13:59:07 +05:30
Arpit Temani
55001d8023
Merge pull request #461 from maticnetwork/arpit/pos-655
sprint length change
2022-11-17 13:03:06 +05:30
Raneet Debnath
6c77efc955 fix logic 2022-11-17 12:55:00 +05:30
Raneet Debnath
5f0fc27fea fix 2022-11-17 12:02:00 +05:30
Arpit Temani
f713647762 Merge branch 'arpit/pos-655' of github.com:maticnetwork/bor into arpit/pos-655 2022-11-17 11:43:35 +05:30
Arpit Temani
366496f68a revert changes for delhi fork 2022-11-17 11:43:21 +05:30
Raneet Debnath
e004e5f298 init: pos-535 smoke test 2022-11-17 11:11:42 +05:30
Arpit Temani
f919886a39
Update sealer_test.go 2022-11-16 09:47:01 +05:30
Arpit Temani
9330780bb1
Update smoke_test.sh 2022-11-16 09:43:48 +05:30
Arpit Temani
d5482469d0 change 5 sec to 2 sec 2022-11-15 22:26:42 +05:30
Arpit Temani
22988ac97b bugfix 2022-11-15 22:13:57 +05:30
Arpit Temani
2b84185173 change ci params 2022-11-15 22:06:12 +05:30
Arpit Temani
1832134a42
Merge pull request #579 from maticnetwork/shivam/POS-972
Shivam/pos 972
2022-11-15 19:42:13 +05:30
Arpit Temani
709bbc8a3e change mumbai and mainnet blocks 2022-11-15 19:41:41 +05:30
Arpit Temani
5a9a8c5804 change hardfork to span start 2022-11-15 16:44:28 +05:30
Arpit Temani
db1c31316f Merge branch 'arpit/pos-655' of github.com:maticnetwork/bor into shivam/POS-972 2022-11-15 16:40:24 +05:30
Arpit Temani
278f7e7239 add checkpoint delay 2022-11-15 16:34:47 +05:30
Arpit Temani
54934761bf change mumbai block number 2022-11-15 16:28:06 +05:30
Arpit Temani
4a1653f7e3 change sprintlength for 2022-11-15 15:06:49 +05:30
Arpit Temani
4642045a4c Merge branch 'arpit/pos-655' of github.com:maticnetwork/bor into shivam/POS-972 2022-11-15 15:00:47 +05:30
Arpit Temani
2543e974ee change version 2022-11-15 14:44:51 +05:30
Arpit Temani
ab6925d7a8 fix matic cli config 2022-11-15 14:27:27 +05:30
Arpit Temani
769e2bb805 change matic-cli config 2022-11-15 13:38:16 +05:30
Arpit Temani
3896c5b319 ci changes 2022-11-15 13:01:16 +05:30
Shivam Sharma
846abac772 fix : failing TestJaipurFork 2022-11-15 11:30:50 +05:30
Shivam Sharma
2e3924ddea lint 2022-11-15 10:47:46 +05:30
Jerry
3a87233a9c Change functions of Key from pointer to value reference 2022-11-14 16:49:18 -08:00
Jerry
da74f8c7e4 Use a new hasher for each account access
There seems to be an issue when hasher is used concurrently in parallel
execution. This change will ensure no hasher is used by multiple
executors at the same time.
2022-11-14 16:49:18 -08:00
Arpit Temani
102d293609 fix tests 2022-11-15 00:57:47 +05:30
Shivam Sharma
7d92be2f17 fix : jaipurFork & baseFeeChangeDenom hardfork num to bigInt 2022-11-14 17:52:55 +05:30
Shivam Sharma
f768136102 init : baseFeeChangeDenom HardFork Changes 2022-11-14 17:38:12 +05:30
Arpit Temani
a4cbe442d8 skip test 2022-11-14 16:18:06 +05:30
Arpit Temani
3da2f650cb fix lints 2022-11-14 12:18:05 +05:30
Arpit Temani
dd9147dcd7 fix testcases 2022-11-14 11:36:54 +05:30
Arpit Temani
b7a282792c merge develop 2022-11-13 19:05:26 +05:30
Arpit Temani
817ca2a2ba add 2 node testcase 2022-11-13 17:28:47 +05:30
SHIVAM SHARMA
7122ddbde8
Merge pull request #576 from maticnetwork/shivam/POS-654
fix : TestRemoteMultiNotifyFull
2022-11-10 02:49:01 +05:30