Skip to content

Make the mempool block accounts who send many invalid transactions #1414

Closed
@sgkim126

Description

@sgkim126

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

.and_then(|_| open_block.push_transaction(tx, None, chain));

Be careful not to ban the signer of transactions imported via RPC.

And after this change, CodeChain needs five more RPCs.

  1. mempool_getBannedAccounts
  2. mempool_unbanAccounts
  3. mempool_banAccounts
  4. mempool_registerAccounts
  5. mempool_getRegisteredAccounts
    • This RPC should return the accounts registered by the above RPC and the signers of transactions imported via RPCs.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions