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

refactor: use wallet connectivity in wallet services #3391

Conversation

sdbondi
Copy link
Member

@sdbondi sdbondi commented Sep 28, 2021

Description

  • use wallet connectivity in broadcast protocol
  • remove base node update code in multiple services
  • use wallet connectivity in transaction validation protocol
  • use wallet connectivity in TXO validation task
  • dependent services use a trait to decouple them from the WalletConnectivityService
  • update/fix tests to use mocked out WalletConnectivityInterface

Includes commit from #3390

Motivation and Context

It is wallet connectivity service's responsibility to manage the base node connection. This PR
removes this responsibility out of the other components.

How Has This Been Tested?

Tests updated, Manually

Generic substream was removed in order to more closely test RPC/yamux
interaction but that was incorrect. The tests should have just been
updated without removing the generic. This PR reintroduces them so that
an RPC client mock can more easily be created.
@sdbondi sdbondi force-pushed the wallet-protocol-use-connectivity branch 2 times, most recently from cd7b74a to 4050469 Compare September 28, 2021 12:48
@sdbondi sdbondi changed the title Wallet protocol use connectivity refactor: use wallet connectivity in wallet services Sep 28, 2021
- use wallet connectivity in broadcast protocol
- remove base node update code in multiple services
- use wallet connectivity in transaction validation protocol
- use wallet connectivity in TXO validation task
- update/fix tests
@sdbondi sdbondi force-pushed the wallet-protocol-use-connectivity branch from 4050469 to aeb1dcb Compare September 28, 2021 12:59
@stringhandler stringhandler merged commit d440afd into tari-project:tx-validation2 Sep 28, 2021
@sdbondi sdbondi deleted the wallet-protocol-use-connectivity branch September 28, 2021 13:03
stringhandler added a commit that referenced this pull request Oct 6, 2021
alternate approach to transaction validation (#3191)
feat!: integration of new transaction and output validation (#3352)
feat: update coinbase handling for new tx and output validation (#3383)
refactor: use wallet connectivity in wallet services (#3391)
refactor: mapping for deleted mmr position to height/hash for perf (#3394)
feat: Fix reinstating CancelledInbound outputs and fix tests (#3400)
chore: merge development into tx-validation2 and fix issues (#3417)
Uncomment cucumber tests
@sdbondi sdbondi restored the wallet-protocol-use-connectivity branch February 3, 2022 05:28
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.

2 participants