diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7063e5943..c275b72c9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,7 +9,7 @@ on: jobs: test_golang: - name: Test, build and push image to registry + name: Test (unit tests) runs-on: ubuntu-latest env: GOPATH: ${{ github.workspace }} diff --git a/core/tx_pool.go b/core/tx_pool.go index f03dcadf1..930f78441 100644 --- a/core/tx_pool.go +++ b/core/tx_pool.go @@ -597,7 +597,8 @@ func (pool *TxPool) validateTx(tx *types.Transaction, local bool) error { } // Heuristic limit, reject transactions over 32KB to prevent DOS attacks - if tx.Size() > 32*1024 { + // test size increase TODO: bring over EIP2464 from XDPoS to allow actual 128KB + if tx.Size() > 128*1024 { return ErrOversizedData } // Transactions can't be negative. This may never happen using RLP decoded diff --git a/eth/hooks/engine_v2_hooks.go b/eth/hooks/engine_v2_hooks.go index e4f585cef..b917756c1 100644 --- a/eth/hooks/engine_v2_hooks.go +++ b/eth/hooks/engine_v2_hooks.go @@ -20,6 +20,7 @@ import ( ) func AttachConsensusV2Hooks(adaptor *XDPoS.XDPoS, bc *core.BlockChain, chainConfig *params.ChainConfig) { + // Hook scans for bad masternodes and decide to penalty them // Subnet penalty is triggered at gap block, and stopped at previous gap block adaptor.EngineV2.HookPenalty = func(chain consensus.ChainReader, number *big.Int, currentHash common.Hash, candidates []common.Address, config *params.XDPoSConfig) ([]common.Address, error) {