Skip to content

Conversation

@kaimast
Copy link
Contributor

@kaimast kaimast commented Nov 17, 2025

Motivation

I commonly see warnings like the following while testing:

WARN snarkos_node_consensus: Failed to add unconfirmed deployment transaction 'at1vxuhwu8z5qkj8..' to the memory pool - Transaction 'at1vxuhwu8z5qkj8...1006109566105467..' already exists.

This seems totally benign, and logging a warning may confuse users.

Proposed change

The change in this PR is very similar to #3981. The relevant functions now return Ok(false). For a valid transaction/solution that already exist in the mempool, in which case nodes print a debug message instead of a warning.

Notes

The change set is a little bigger as the channels require quite a bit of boilerplate. I hope we can eventually merge something like #3858 to simplify this.

@kaimast kaimast marked this pull request as ready for review November 18, 2025 22:53
@kaimast kaimast changed the title log(node/bft): avoid transaction/solution already exists warnings [Logs] Avoid transaction/solution already exists warnings Nov 18, 2025
@kaimast kaimast requested review from raychu86 and vicsn November 19, 2025 04:35
Copy link
Collaborator

@vicsn vicsn left a comment

Choose a reason for hiding this comment

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

1 nit

vicsn
vicsn previously approved these changes Nov 19, 2025
@vicsn
Copy link
Collaborator

vicsn commented Nov 19, 2025

@kaimast we may need to extend the connection deadline in the test, I've seen this one fail more often

@kaimast kaimast force-pushed the log/duplicate-deployment branch from f47fc22 to 387469e Compare November 21, 2025 02:48
@vicsn vicsn merged commit 0dfa537 into staging Nov 21, 2025
4 of 5 checks passed
@vicsn vicsn deleted the log/duplicate-deployment branch November 21, 2025 08:31
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.

3 participants