-
Notifications
You must be signed in to change notification settings - Fork 117
[r2r] broadcast tx to txhlp / refactor tx errors #1245
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
Changes from 8 commits
daeafc8
860163c
43862b6
b02ce08
f3747f7
7acdd35
06ecd56
5a73d5d
9a4c496
4a5d9c5
a9f2e6b
840d022
658ff56
f8ed4cc
fedbc32
78d64e3
e9d16a9
8545045
5c24769
1c3d7bd
b11fe2c
98df7cf
b1f9745
f136301
9a203e7
b6c8ecb
d10d4a9
3a2b0e9
3299524
d2cbe7b
6534913
1778350
903526f
6b9e579
19a493d
aa43384
21f2b6a
7811106
9c9db1c
f461dcc
bad90b6
8ca638f
ed574a5
46ad808
d456326
7e6c215
9444eda
5ba0dd1
f87cef3
21f9684
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,6 +10,7 @@ use super::{broadcast_my_swap_status, broadcast_swap_message_every, check_other_ | |
| SwapConfirmationsSettings, SwapError, SwapMsg, SwapsContext, TransactionIdentifier, WAIT_CONFIRM_INTERVAL}; | ||
| use crate::mm2::lp_network::subscribe_to_topic; | ||
| use crate::mm2::lp_ordermatch::{MatchBy, OrderConfirmationsSettings, TakerAction, TakerOrderBuilder}; | ||
| use crate::mm2::lp_swap::{broadcast_transaction_message, tx_helper_topic}; | ||
| use crate::mm2::MM_VERSION; | ||
| use bigdecimal::BigDecimal; | ||
| use coins::{lp_coinfind, CanRefundHtlc, FeeApproxStage, FoundSwapTxSpend, MmCoinEnum, TradeFee, TradePreimageValue, | ||
|
|
@@ -1287,6 +1288,13 @@ impl TakerSwap { | |
| }, | ||
| }; | ||
|
|
||
| broadcast_transaction_message( | ||
| &self.ctx, | ||
| tx_helper_topic(self.maker_coin.ticker()), | ||
| transaction.tx_hex(), | ||
| &self.p2p_privkey, | ||
| ); | ||
|
|
||
| let tx_hash = transaction.tx_hash(); | ||
| log!({"Maker payment spend tx {:02x}", tx_hash }); | ||
| let tx_ident = TransactionIdentifier { | ||
|
|
@@ -1330,6 +1338,13 @@ impl TakerSwap { | |
| }, | ||
| }; | ||
|
|
||
| broadcast_transaction_message( | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have noticed that it's better to
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm a little confused 😅
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Sorry, I couldn't explain correctly. I didn't call |
||
| &self.ctx, | ||
| tx_helper_topic(self.taker_coin.ticker()), | ||
| transaction.tx_hex(), | ||
| &self.p2p_privkey, | ||
| ); | ||
|
|
||
| let tx_hash = transaction.tx_hash(); | ||
| log!({"Taker refund tx hash {:02x}", tx_hash }); | ||
| let tx_ident = TransactionIdentifier { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.