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

feat: track balance increases in state diffs #745

Draft
wants to merge 8 commits into
base: unstable
Choose a base branch
from

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.

1 participant