Skip to content

Conversation

@mariocynicys
Copy link
Collaborator

This implements the global DB's UUID -> maker_address mapping.

When the swap is started or imported (via import_swaps rpc), the uuid to maker_address mapping gets stored in the global DB. When the uuid is queried, we fetch the maker_address from that global DB map to get the address directory that hosts the data related to that uuid.

This touches only v1 swaps for now.

…address

but only of the address wasn't already passed by the caller
the gist of this commit lies in mm2_main::database::my_swaps. `fn insert_new_swap` now takes a connection and writes that swap to. this connection is passed from the caller, and it's the address_db that's derived from the maker coin address.
for old arch this essentially brings no change. the same db from dbdir() is still the one used in this case.
@shamardy shamardy marked this pull request as draft June 16, 2025 05:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants