Skip to content

Add new mpool tools #6911

Draft
sudo-shashank wants to merge 9 commits intomainfrom
shashank/nonce-fix-cmd
Draft

Add new mpool tools #6911
sudo-shashank wants to merge 9 commits intomainfrom
shashank/nonce-fix-cmd

Conversation

@sudo-shashank
Copy link
Copy Markdown
Contributor

Summary of changes

Changes introduced in this pull request:

  • Implement mpool nonce-fix and replace cli commands.

Reference issue to close (if applicable)

Closes

Other information and links

Change checklist

  • I have performed a self-review of my own code,
  • I have made corresponding changes to the documentation. All new code adheres to the team's documentation standards,
  • I have added tests that prove my fix is effective or that my feature works (if possible),
  • I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

Outside contributions

  • I have read and agree to the CONTRIBUTING document.
  • I have read and agree to the AI Policy document. I understand that failure to comply with the guidelines will lead to rejection of the pull request.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 15, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: eb1de3cc-e9d5-489b-9cf9-ce67a2c4e22d

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch shashank/nonce-fix-cmd
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch shashank/nonce-fix-cmd

Comment @coderabbitai help to get the list of available commands and usage tips.

let m6 = create_smsg(&target, &sender, wallet.borrow_mut(), 6, 1000000, 1);
let pending = vec![m5.clone(), m6];

let found = find_pending_message(sender, 5, &pending).unwrap();
let m5 = create_smsg(&target, &sender, wallet.borrow_mut(), 5, 1000000, 1);
let pending = vec![m5];

let e = find_pending_message(sender, 99, &pending).unwrap_err();
let m = create_smsg(&target, &sender, wallet.borrow_mut(), 5, 1000000, 1);
let pending = vec![m];

let e = find_pending_message(other, 5, &pending).unwrap_err();
let mut wallet = Wallet::new(keystore);
let addr = wallet.generate_addr(SignatureType::Secp256k1).unwrap();

let e = find_pending_message(addr, 0, &[]).unwrap_err();
let original_premium = TokenAmount::from_atto(100u64);
let rbf_floor = compute_rbf_minimum_premium(&original_premium);

let estimated = make_test_message(addr, target, 5, 2000000, 200, 500);
let original_premium = TokenAmount::from_atto(1000u64);
let rbf_floor = compute_rbf_minimum_premium(&original_premium);

let estimated = make_test_message(addr, target, 5, 2000000, 50, 500);
let addr = wallet.generate_addr(SignatureType::Secp256k1).unwrap();
let target = wallet.generate_addr(SignatureType::Secp256k1).unwrap();

let original = make_test_message(addr, target, 5, 1000000, 100, 300);
let addr = wallet.generate_addr(SignatureType::Secp256k1).unwrap();
let target = wallet.generate_addr(SignatureType::Secp256k1).unwrap();

let original = make_test_message(addr, target, 5, 1000000, 100, 300);
let addr = wallet.generate_addr(SignatureType::Secp256k1).unwrap();
let target = wallet.generate_addr(SignatureType::Secp256k1).unwrap();

let original = make_test_message(addr, target, 5, 1000000, 100, 300);
let addr = wallet.generate_addr(SignatureType::Secp256k1).unwrap();
let target = wallet.generate_addr(SignatureType::Secp256k1).unwrap();

let original = make_test_message(addr, target, 5, 1000000, 100, 300);
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.

2 participants