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

Added Transaction Restriction Service (TRS) implementation and Fixed bugs #42

Merged
merged 7 commits into from
Jun 20, 2024

Conversation

cp-wjhan
Copy link
Collaborator

No description provided.

cp-wjhan and others added 3 commits May 28, 2024 08:55
…ction Service) implementation.

 - Added function read trsParameters(trsList,subscribe) from contract.
 - Added function check trs subscribe.
 - Added function to restriction transactions from addresses included in trsList.
 - Added function to periodically discard transactions included in trsList from the pending txpool.
 - Added admin_trsInfo RPC API.
Moving the response sending there allows tracking all peer goroutines
in the peer WaitGroup.
- Changed the logic to get TRS information into Txpool.
- Added a function to store the block number of cached TRS information and find it by block number.
Copy link

@sadoci sadoci left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@trident90 trident90 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cp-jhjin cp-jhjin merged commit f40e217 into METADIUM:dev Jun 20, 2024
5 checks passed
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.

5 participants