Skip to content

Commit

Permalink
feat(backend): Class to manage btc pending transactions (#2598)
Browse files Browse the repository at this point in the history
# Motivation

We want to store pending btc transactions to disable users from making
transactions while there is one that hasn't finished.

In this PR, I introduce the module to manage the pending transactions.
It adds functionality to add, read and prune the pending transaction.

This struc will then be added to the heap, (hence that I put it inside a
directory `heap_state`) and used in the backend endpoints.

# Changes

* New class `BtcUserPendingTransactions` in module
`heap_state/btc_user_pending_tx_state`.
* Add new module to lib.

# Tests

* Test class functionality.
  • Loading branch information
lmuntaner authored Oct 1, 2024
1 parent 440aff8 commit 9c0d64a
Show file tree
Hide file tree
Showing 3 changed files with 495 additions and 0 deletions.
Loading

0 comments on commit 9c0d64a

Please sign in to comment.