-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(btcrpc): add network fee to transaction processing
- Loading branch information
Showing
10 changed files
with
82 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
migrations/schema/0010_add_network_fee_to_onchain_btc_processed_transactions.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
-- Remove network_fee column from onchain_btc_processed_transactions | ||
-- Remove network_fee column and foreign key from onchain_btc_processed_transactions | ||
ALTER TABLE onchain_btc_processed_transactions | ||
DROP CONSTRAINT IF EXISTS fk_btc_processed_icy_swap_transaction, | ||
DROP COLUMN IF EXISTS network_fee; |
6 changes: 5 additions & 1 deletion
6
migrations/schema/0010_add_network_fee_to_onchain_btc_processed_transactions.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
-- Add network_fee column to onchain_btc_processed_transactions | ||
ALTER TABLE onchain_btc_processed_transactions | ||
ADD COLUMN network_fee VARCHAR(255) DEFAULT '0'; | ||
ADD COLUMN network_fee VARCHAR(255) DEFAULT '0', | ||
ADD CONSTRAINT fk_btc_processed_icy_swap_transaction | ||
FOREIGN KEY (swap_transaction_hash) | ||
REFERENCES onchain_icy_swap_transactions(transaction_hash) | ||
ON DELETE SET NULL; |