setunapo
de5dd95ada
worker: enhancement of the current block generation logic.
...
Currently, validator only try once to get transactions from TxPool to produce the block.
However, new transactions could arrive while the validator is committing transaction.
Validator should be allowed to add these new arrived transactions as long as
Header.Timestamp is not reached
This commit will:
** commitTransactions return with error code
** drop current mining block on new block imported
** try fillTransactions several times for the best
not use append mode to follow the GasPrice rule.
** check if there is enough time for another fillTransactions.
2022-11-21 17:28:23 +08:00
setunapo
fe1c8622f6
parlia: Delay() with DelayLeftOver
...
Right now, DelayLeftOver is used to reserve time for block finalize, not block
broadcast. And the code does not work as expected.
The general block generation could be described as:
|- fillTransactions -|- finalize a block -|- wait until the period(3s) reached -|- broadcast -|
2022-11-16 10:47:58 +08:00
Jolly Zhao
c46671df97
parlia: the newChainHead mights not be imported to Pralia.Snapshot ASAP
2022-10-28 11:42:06 +08:00
dylanhuang
c3e3b1128d
consensus: fix the GasLimitBoundDivisor ( #1060 )
2022-08-22 11:24:50 +08:00
j75689
79bd42836c
fix: code compatibility fixes
2022-07-05 11:14:21 +08:00
yutianwu
3ddedad500
fix comments
2021-05-07 14:31:06 +08:00
yutianwu
cc8efd1ea3
revert changes
2021-04-16 14:05:41 +08:00
yutianwu
061cd5030c
upgrade to 1.10.2
2021-04-16 12:45:26 +08:00
zjubfd
7a1262ca14
validator only write database state when enough distance ( #116 )
2021-03-19 13:42:26 +08:00
zjubfd
f8faf7faaa
[R4R]apply max commit tx time for miner worker ( #112 )
...
* apply max commit tx time for miner worker
* update to 200 ms
2021-03-19 13:23:44 +08:00
zjubfd
e55e9cdd76
change the fork waring to debug to avoid confusion ( #73 )
2021-02-09 11:49:53 +08:00
fudongbai
60606d3919
support fork id in header; elegant upgrade
2021-01-11 13:54:35 +08:00
Hyunsik Lee
cb1afd2b14
Hide some smart contract tracing logs from parlia consensus engine
2020-09-30 02:43:10 +09:00
Hyunsik Lee
7bd1c1f23d
Disable noisy log from consensus engine
2020-09-30 02:43:09 +09:00
fudongbai
c399c88e08
fix not return error when blockTimeVerifyForRamanujanFork failed
2020-08-11 15:13:10 +08:00
fudongbai
4f431e0843
fix index out of range
2020-08-10 11:27:36 +08:00
HaoyangLiu
650d066757
resolve comment
2020-08-07 17:16:39 +08:00
zjubfd
a8c9e53eb0
enforce backoff time for out-turn validator ( #23 )
2020-08-07 17:06:29 +08:00
HaoyangLiu
8124e60e9d
resolve best practice advice
2020-08-04 13:56:13 +08:00
zjubfd
f4816ee8b7
add chain id into sign bytes to avoid replay attack ( #18 )
2020-07-09 15:46:37 +08:00
zjubfd
6f46fc0589
allow slash failed ( #15 )
2020-06-30 20:22:57 +08:00
fudongbai
ef1e8746d6
add cross chain contract to system contract
2020-06-30 08:38:15 +00:00
fudongbai
6a19c9803c
remove redundant gaslimit check
2020-06-24 16:17:22 +08:00
fudongbai
4bd4469151
add gas limit check in parlia implement
2020-06-18 00:26:27 +08:00
zjubfd
e83397e26a
Merge pull request #4 from binance-chain/issue3
...
[R4R]fix validator failed to sync a block produced by itself, resolve #3
2020-06-15 17:16:35 +08:00
fudongbai
ed9b28fe7b
fix validator failed to sync a block produced by itself
2020-06-02 16:41:48 +08:00
fudongbai
4909842097
add gov init transaction
2020-05-22 10:38:14 +08:00
fudongbai
39c80ce175
more strick condition for system transaction
2020-05-22 10:21:57 +08:00
fudongbai
2ac4ae8395
add consensus engine Parlia implement
2020-05-20 12:19:24 +08:00