Skip to content

Conversation

@thedevbirb
Copy link
Contributor

@thedevbirb thedevbirb commented Jan 27, 2025

This PR introduces chained preconfirmations from different users in the sidecar. Example:

  • Alice sends 1 ETH to Bob which has no balance
  • Bob wants to use that money without waiting for Alice transaction to be included in a block

In order to do that the state diffs logic has been slightly modified by tracking both balance increases and decreases. Some refactoring has been done to avoid opaque tuple types and improve readability. Comes with tests included.

I strongly suggest to read the PR commit by commit, where some of them carry their own description and rationale.

@thedevbirb thedevbirb force-pushed the lore/feat/preconfirmed-balance branch 2 times, most recently from d90940f to 103f836 Compare January 27, 2025 15:51
@thedevbirb thedevbirb added C: bolt-sidecar Component: bolt-sidecar T: feature Type: Feature labels Jan 27, 2025
@thedevbirb thedevbirb force-pushed the lore/feat/preconfirmed-balance branch from 103f836 to 54cb18b Compare January 29, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C: bolt-sidecar Component: bolt-sidecar T: feature Type: Feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants