Skip to content

Refactor/eagerly load peg btc address#401

Open
blake-pro wants to merge 3 commits intoGOATNetwork:devfrom
blake-pro:refactor/eagerly-load-peg-btc-address
Open

Refactor/eagerly load peg btc address#401
blake-pro wants to merge 3 commits intoGOATNetwork:devfrom
blake-pro:refactor/eagerly-load-peg-btc-address

Conversation

@blake-pro
Copy link
Copy Markdown
Contributor

  1. Previously, peg_btc_address was fetched dynamically via goat_config_from_env().await each time swap events were processed. This was unnecessary since the value does not change at runtime. So it's better to load it at startup.
  2. Updated test_unlimited_opreturn to sort and select the largest available UTXO for the bank address, improving test reliability.

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.

3 participants