Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Malicious behavior miner #132

Draft
wants to merge 44 commits into
base: tag-v1.4.13
Choose a base branch
from
Draft

Conversation

NathanBSC
Copy link

@NathanBSC NathanBSC commented Aug 2, 2024

Description

Malicious behavior miner

Rationale

just to see the diff between latest tag and this branch

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

@NathanBSC NathanBSC force-pushed the malicious_behavior_miner branch 3 times, most recently from 4e6b257 to 13c253f Compare August 14, 2024 09:37
@NathanBSC NathanBSC changed the base branch from develop to tag-v1.4.13 August 14, 2024 09:37
@OKE66
Copy link

OKE66 commented Aug 20, 2024

Description

Malicious behavior miner

Rationale

just to see the diff between latest tag and this branch

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

Pla

buddh0 and others added 21 commits August 20, 2024 11:51
expected hard fork date:
    Mainnet-HaberFix: 2024-09-26 02:02:00 AM UTC
    Mainnet-Bohr:     2024-09-26 02:20:00 AM UTC
apply `Eth.Miner.GasCeil` to TxPool even the node did not enable `--mine` option
Otherwise, there could be accmulated pending transactions in txpool.
Take an example:
- Currently, BSC testnet's block gaslimit is 70M, as 20M gas is reserved for
  SystemTxs, the maximum acceptable GasLimit for transaction is 50M.
- TxPool recevied a transaction with GasLimit 60M, it would be accepted in TxPool but it
  will never be accepted by validators. Such kinds of transactions will be kept in txpool
  and gradually make the txpool overflowed
Otherwise the node will be waiting for 500ms before the block fetcher
keeps processing.
This PR tries to improve bnb-chain#2680
If the node did not set `Eth.Miner` in config.toml, the default GasCeil
will be 30000000, it is not an accurate number for both BSC mainnet and testnet.
Set it to 0 means disable the transaction GasLimit check, i.e. the TxPool will
accept transactions with any GasLimit size.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.