Skip to content

Conversation

ARR4N
Copy link
Collaborator

@ARR4N ARR4N commented Oct 2, 2025

Why this should be merged

Preparatory work for support of Firewood as a triedb.DBOverride.

How this works

  1. trienode package has pseudo payloads added to nodes and sets, with hooks to allow the payloads to be propagated along with set mergers.
  2. The NodeSet and MergedNodeSet payloads are used to propagate Firewood proposal handles from Trie.Commit() through to triedb.BackendDB.Update(), along with GC management to free Rust-owned proposals. THe handles are currently only dummies, used as plumbing.

How this was tested

Integration tests of both (1) and (2). The firewood tests exercise the entire stack from state.StateDB down to triedb backend implementation (which will be Firewood).

@ARR4N ARR4N marked this pull request as ready for review October 2, 2025 15:30
@ARR4N ARR4N self-assigned this Oct 2, 2025
@ARR4N ARR4N requested a review from alarso16 October 2, 2025 15:30
Copy link

@alarso16 alarso16 left a comment

Choose a reason for hiding this comment

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

More questions than recommendations

// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
// General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
Copy link

Choose a reason for hiding this comment

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

Is this the correct license for our firewood code?

Copy link

@alarso16 alarso16 left a comment

Choose a reason for hiding this comment

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

Once we resolve the licensing concern, looks good to me

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