Closed
Description
The user who sends many invalid transactions might be the malicious user. Invalid transactions mean transactions with an invalid syntax and transactions occurring a runtime error. But some runtime errors(e.g. AssetNotFound, AssetSchemeNotFound) do not included.
FYI, you should fix around here
codechain/core/src/miner/miner.rs
Line 474 in b4f5ad9
Be careful not to ban the signer of transactions imported via RPC.
And after this change, CodeChain needs five more RPCs.
- mempool_getBannedAccounts
- mempool_unbanAccounts
- mempool_banAccounts
- mempool_registerAccounts
- mempool_getRegisteredAccounts
- This RPC should return the accounts registered by the above RPC and the signers of transactions imported via RPCs.