Skip to content
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

feat: broadcast one sided #6568

Merged

Conversation

SWvheerden
Copy link
Collaborator

Description

Broadcast one-sided transactions

Motivation and Context

When a wallet sends a 1-sided tx it will now send it across the network to the peer as well. If the peer listens to the it, ti will register the tx immediately and show it to the user.

How Has This Been Tested?

manual

@SWvheerden SWvheerden requested a review from a team as a code owner September 17, 2024 14:32
Copy link

github-actions bot commented Sep 17, 2024

Test Results (Integration tests)

18 tests  +18   18 ✅ +18   4m 39s ⏱️ + 4m 39s
 2 suites + 2    0 💤 ± 0 
 2 files   + 2    0 ❌ ± 0 
 1 errors

For more details on these parsing errors, see this check.

Results for commit 8ee00ed. ± Comparison against base commit aca61f3.

♻️ This comment has been updated with latest results.

@ghpbot-tari-project ghpbot-tari-project added P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged labels Sep 17, 2024
Copy link

github-actions bot commented Sep 17, 2024

Test Results (CI)

    3 files    129 suites   43m 4s ⏱️
1 322 tests 1 322 ✅ 0 💤 0 ❌
3 964 runs  3 964 ✅ 0 💤 0 ❌

Results for commit 8ee00ed.

♻️ This comment has been updated with latest results.

Copy link
Contributor

@hansieodendaal hansieodendaal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The one-sided transaction is picked up by the receiver, but statuses mismatch right after the transaction has been sent. I think the statuses should be in sync, so the receiver should start with 'broadcast', maybe even 'pending'.

Sender
2024-09-18 08:40:41 Transaction Broadcast to Mempool - TxId: 8373244691538681433

Notifications───────────────────────────────────────────────────────────────────────────
2024-09-18 09:16:14 Transaction Confirmed - TxId: 8373244691538681433
2024-09-18 09:13:05 Transaction Mined Unconfirmed with 2 confirmations - TxId: 8373244691538681433
2024-09-18 09:13:04 Transaction Mined Unconfirmed with 2 confirmations - TxId: 8373244691538681433
2024-09-18 09:02:25 Transaction Mined Unconfirmed with 1 confirmations - TxId: 8373244691538681433
2024-09-18 09:02:25 Transaction Mined Unconfirmed with 1 confirmations - TxId: 8373244691538681433
2024-09-18 08:45:16 Transaction Mined Unconfirmed with 0 confirmations - TxId: 8373244691538681433
2024-09-18 08:45:16 Transaction Mined Unconfirmed with 0 confirmations - TxId: 8373244691538681433
2024-09-18 08:43:07 Transaction Broadcast to Mempool - TxId: 8373244691538681433
2024-09-18 08:43:07 Transaction Broadcast to Mempool - TxId: 8373244691538681433
2024-09-18 08:40:41 Transaction Broadcast to Mempool - TxId: 8373244691538681433       

Receiver
2024-09-18 08:40:41 Transaction Mined Unconfirmed with 0 confirmations - TxId: 8373244691538681433

Notifications──────────────────────────────────────────────────────────────────────────
2024-09-18 09:16:22 Transaction Confirmed - TxId: 8373244691538681433
2024-09-18 09:13:13 Transaction Mined Unconfirmed with 0 confirmations - TxId: 8373244691538681433
2024-09-18 09:02:04 Transaction Mined Unconfirmed with 0 confirmations - TxId: 8373244691538681433
2024-09-18 08:45:25 Transaction Mined Unconfirmed with 0 confirmations - TxId: 8373244691538681433
2024-09-18 08:40:41 Transaction Mined Unconfirmed with 0 confirmations - TxId: 8373244691538681433

Copy link
Contributor

@hansieodendaal hansieodendaal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The transaction is not picked up by the receiver wallet, it only receives the initial message from the sender.
Sender

│2024-09-18 12:24:21 Transaction Confirmed - TxId: 3746389574381860457                                                                                                │
│2024-09-18 12:20:42 Transaction Mined Unconfirmed with 2 confirmations - TxId: 3746389574381860457                                                                   │
│2024-09-18 12:20:42 Transaction Mined Unconfirmed with 2 confirmations - TxId: 3746389574381860457                                                                   │
│2024-09-18 12:19:33 Transaction Mined Unconfirmed with 1 confirmations - TxId: 3746389574381860457                                                                   │
│2024-09-18 12:19:33 Transaction Mined Unconfirmed with 1 confirmations - TxId: 3746389574381860457                                                                   │
│2024-09-18 12:05:23 Transaction Mined Unconfirmed with 0 confirmations - TxId: 3746389574381860457                                                                   │
│2024-09-18 12:05:23 Transaction Mined Unconfirmed with 0 confirmations - TxId: 3746389574381860457                                                                   │
│2024-09-18 12:01:14 Transaction Broadcast to Mempool - TxId: 3746389574381860457                                                                                     │
│2024-09-18 12:01:14 Transaction Broadcast to Mempool - TxId: 3746389574381860457                                                                                     │
│2024-09-18 12:01:14 Transaction Broadcast to Mempool - TxId: 3746389574381860457                                                                                     │
│2024-09-18 11:56:05 Transaction Broadcast to Mempool - TxId: 3746389574381860457                                                                                     │
│2024-09-18 11:56:05 Transaction Broadcast to Mempool - TxId: 3746389574381860457                                                                                     │
│2024-09-18 11:56:05 Transaction Broadcast to Mempool - TxId: 3746389574381860457                                                                                     │
│2024-09-18 11:52:41 Transaction Broadcast to Mempool - TxId: 3746389574381860457                                                                                     │
│2024-09-18 11:51:34 Transaction Confirmed - TxId: 8373244691538681433                                                                                                

Receiver

┌Notifications────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│Press C to clear notifications                                                                                                                                       │
│2024-09-18 11:52:41 Transaction Broadcast to Mempool - TxId: 3746389574381860457                                                                                     

hansieodendaal
hansieodendaal previously approved these changes Sep 18, 2024
Copy link
Contributor

@hansieodendaal hansieodendaal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@ghpbot-tari-project ghpbot-tari-project removed the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Sep 18, 2024
@SWvheerden SWvheerden force-pushed the sw_broadcast_one_sided branch from 0401cce to 01f57dc Compare September 19, 2024 06:21
@ghpbot-tari-project ghpbot-tari-project added the P-reviews_required Process - Requires a review from a lead maintainer to be merged label Sep 19, 2024
@SWvheerden SWvheerden merged commit a954383 into tari-project:development Sep 20, 2024
16 of 17 checks passed
@SWvheerden SWvheerden deleted the sw_broadcast_one_sided branch October 3, 2024 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P-acks_required Process - Requires more ACKs or utACKs P-reviews_required Process - Requires a review from a lead maintainer to be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants