-
Notifications
You must be signed in to change notification settings - Fork 285
(#1919) Migrate to AddWatchedAddresses #1920
Conversation
It doesn't look like the wallet interface and wallet changes were merged into this branch right? Also, since this is a varadic function you should just be able to do:
instead of:
|
My GoLand IDE was bitching about it when I did that. Are you sure? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to include the vendor changes on this PR before this can be merged.
@hoffmabc mentioned there was still details which need to be included in this PR. I also noticed that the go-eth wallet changes are not consistent with the PR opened in its repo. If we're going to change the wallet-interface, it would be my preference that all dependencies which are expected to be cast into this interface to be working. I've recommended a unit test be added to these dependency's tests suite to ensure this interface is satisfied. Something like:
|
I was going to try and implement this but I'm really not convinced we should be unit testing this. I mean as soon as you try to instantiate an object using this interface you're going to get a compile time error. This doesn't really by us anything here. Any thoughts @cpacia @tyler-smith ? |
This is to you @placer14. The PR is completed in terms of feedback along with linked dependencies. |
Ok this is ready @placer14 |
450a2ef
to
97d6fc8
Compare
a5db5a3
to
b6aaa9e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks ready to merge now. Would appreciate another look by @cpacia at the recent race fix and some additional tidying up.
b6aaa9e
to
aa1ca08
Compare
* origin/master: (23 commits) (#1919) Migrate to AddWatchedAddresses (#1920) Do not mark wallet address as watched + fix earlier txn errors Refactor zcash buildtx Import latest zcash changes Update make openbazaard command to not include tag Point Dockfiles at public Docker Hub repo; Add make help Bump version to 0.13.7 Update zcash branchID Remove unused imports Fix linter issues Update transports Update Bitcoin Cash rates dialer Refactor Dockerfile.dev to derive from latest Dockerfile.qa Refactor Dockerfile.qa Add openbazaard and qa targets to Makefile; Fix docker build targets Add QA docker commands to Makefile QA dockerfile Add qa.sh script Fix transports for message retriever and images Fix formatted logging messages ... Conflicts: Makefile net/service/handlers.go qa/runtests.sh vendor/github.com/OpenBazaar/multiwallet/bitcoin/wallet.go vendor/github.com/OpenBazaar/multiwallet/bitcoincash/exchange_rates.go vendor/github.com/OpenBazaar/multiwallet/bitcoincash/wallet.go vendor/github.com/OpenBazaar/multiwallet/litecoin/wallet.go vendor/github.com/OpenBazaar/multiwallet/zcash/exchange_rates.go vendor/github.com/OpenBazaar/multiwallet/zcash/wallet.go
* Migrate to AddWatchedAddresses * Use variadic parameters * Vendored fixes * Re-watch addresses on socket restart * Convert Mutex to RWMutex * Protect with listenLock * Update to use bulk call * Eliminate redundant conversion * Move statements into the socketclient section * Remove duplicate lock * Refactored to be closer to it’s usage * DB Transaction for Putting PubKeys * Fix linter errors * Migrate to PutAll for watched scripts * Fix missing initialization of err * Interface check for implemented wallets * Handle errors from transaction; Report Rollback failures * Append to BlockBookClient.listenAddrs instead of replace * Fix race bug and remove redundant replay handling in c/b/client.go Co-authored-by: Mike Greenberg <[email protected]>
Unresolved merges from go-ethwallet, spvwallet, and multiwallet * ethereum-master: (178 commits) Bump version to v0.13.8 [#1923] Set default profile.Version only if empty [#1923] Add version to profile protobuf Vendor latest changes for multiwallet Error on no inputs available (#1919) Migrate to AddWatchedAddresses (#1920) Remove unused function Do not mark wallet address as watched + fix earlier txn errors Refactor zcash buildtx Import latest zcash changes Update make openbazaard command to not include tag Point Dockfiles at public Docker Hub repo; Add make help Bump version to 0.13.7 Update zcash branchID Remove unused imports Fix linter issues Update transports Update Bitcoin Cash rates dialer Refactor Dockerfile.dev to derive from latest Dockerfile.qa Refactor Dockerfile.qa ... Conflicts: api/jsonapi_test.go core/completion.go core/order.go core/profile.go core/refunds.go mobile/node.go repo/db/purchases.go repo/db/watched_scripts.go repo/migrations/Migration014.go repo/profile.go repo/profile_test.go test/factory/profile.go
* Migrate to AddWatchedAddresses * Use variadic parameters * Vendored fixes * Re-watch addresses on socket restart * Convert Mutex to RWMutex * Protect with listenLock * Update to use bulk call * Eliminate redundant conversion * Move statements into the socketclient section * Remove duplicate lock * Refactored to be closer to it’s usage * DB Transaction for Putting PubKeys * Fix linter errors * Migrate to PutAll for watched scripts * Fix missing initialization of err * Interface check for implemented wallets * Handle errors from transaction; Report Rollback failures * Append to BlockBookClient.listenAddrs instead of replace * Fix race bug and remove redundant replay handling in c/b/client.go Co-authored-by: Mike Greenberg <[email protected]>
* ethereum-master: (41 commits) Update latest multiwallet dependency Commit latest changes from spvwallet Remove single-currency BitcoinCash/Zcash startup options Fix remaining build errors Update/add github.com/OpenBazaar/go-ethwallet/.. deps [#1930] Remove bitcoind-wallet and zcashd-wallet dependencies [#1965] Deprecate Migration014 Pick patches from ae0282f index on reapply-lost-patch: 361c5e4 Restore patch from fdf79f5..c110900 Restore patch from fdf79f5..c110900 Bump version to v0.13.8 [#1923] Set default profile.Version only if empty [#1923] Add version to profile protobuf Vendor latest changes for multiwallet Error on no inputs available (#1919) Migrate to AddWatchedAddresses (#1920) Remove unused function Do not mark wallet address as watched + fix earlier txn errors Refactor zcash buildtx Import latest zcash changes ...
* commit '1ab22c8e2fb4e59122d38bb2d7cb0dbee890efee': (30 commits) Vendor latest changes for multiwallet Error on no inputs available (OpenBazaar#1919) Migrate to AddWatchedAddresses (OpenBazaar#1920) Do not mark wallet address as watched + fix earlier txn errors Update make openbazaard command to not include tag Point Dockfiles at public Docker Hub repo; Add make help Remove unused imports Fix linter issues Update transports Update Bitcoin Cash rates dialer Refactor Dockerfile.dev to derive from latest Dockerfile.qa Refactor Dockerfile.qa Add openbazaard and qa targets to Makefile; Fix docker build targets Add QA docker commands to Makefile QA dockerfile Add qa.sh script Fix transports for message retriever and images Fix formatted logging messages Add dates to timestamps for desktop server Add date to the timestamps in Haven logging ...
Helps fix #1919
This will hopefully fix: