Commit Graph

11214 Commits

Author SHA1 Message Date
sqrrm
79f0dacc24
Merge pull request #4324 from ghubstan/5A-print-addressinfo-as-table
Return protos from funding address methods
2020-06-25 19:44:24 +02:00
sqrrm
ca98654725
Merge pull request #4304 from ghubstan/2-getaddressbalance
Add rpc method 'getaddressbalance'
2020-06-25 19:41:21 +02:00
Christoph Atteneder
d810387b41
Merge pull request #4305 from sqrrm/sign-same-name
Sign same name
2020-06-25 14:07:24 +02:00
Christoph Atteneder
ab92350369
Merge pull request #4319 from devinbileck/update-install-scripts
Update seednode/pricenode install scripts
2020-06-25 13:56:31 +02:00
Christoph Atteneder
38f6af26ee
Merge pull request #4294 from sqrrm/add-multiple-fee-receivers
Add multiple fee receivers
2020-06-25 13:23:53 +02:00
sqrrm
745178e7db
Merge pull request #4335 from ripcurlx/fix-filter-propagation
Add equals check to prevent resetting of newly set Filter
2020-06-25 12:56:00 +02:00
sqrrm
cfd126f9e2
Merge pull request #4296 from ghubstan/wallets-protection-api-tests
Add wallets protection api tests
2020-06-25 12:48:31 +02:00
Christoph Atteneder
e50c7a6132
Add equals check to prevent resetting of newly set Filter 2020-06-25 12:40:49 +02:00
sqrrm
1c9299a2e5
Merge pull request #4295 from ghubstan/rename-core-wallet-service
Rename CoreWalletService -> CoreWalletsService
2020-06-25 11:01:31 +02:00
Christoph Atteneder
96645a7238
Merge pull request #4306 from huey735/patch-5
Add link to scripts
2020-06-25 10:15:31 +02:00
Christoph Atteneder
2e85d8824f
Merge pull request #4332 from Emzy/patch-3
Add V3 seednode sn3emzy
2020-06-25 10:11:03 +02:00
Stephan Oeste
e9562b0d9b
Add V3 seednode sn3emzy
As part of the Tor V3 upgrade, and the effort to increase the number of
Bisq seednodes from 8 to 12, this PR adds a new V3 seednode.
2020-06-23 19:07:06 +02:00
sqrrm
b87ba9e5ca
Merge pull request #4331 from bisq-network/release/v1.3.5
Release/v1.3.5
2020-06-23 15:54:28 +02:00
Christoph Atteneder
d2fdc79c26
Revert to SNAPSHOT version 2020-06-23 15:32:57 +02:00
ghubstan
612bafe59a
Refactor AddressBalanceInfo display logic 2020-06-20 08:42:58 -03:00
ghubstan
331f488057
Return protos from funding address methods
The 'getaddressbalance' and 'getfundingaddresses' methods now send
new AddressBalanceInfo proto messages instead of a formatted String
to the client.  The AddressBalanceInfo message contains addressString,
balance, and # of confirmations (transaction confidence) fields.

Changes include:
* A new AddressBalanceInfo proto message
* A wrapper class for the new AddressBalanceInfo proto
* New 'getaddressbalance' and 'getfundingaddresses' signatures in server
* AddressBalanceInfo display logic in client
* Removal of balance formatting logic in server
* Refactoring of balance formatting logic in client
2020-06-19 20:00:28 -03:00
ghubstan
435672a5ee
Add rpc method 'getpaymentaccts'
This addresses task 5 in issue 4257
	https://github.com/bisq-network/bisq/issues/4257

This new gRPC PaymentAccounts service method displays the user's
saved payment accounts.

A unit test to check a successful return status code was added
to cli/test.sh.

This PR should be reviewed/merged after PR 4322.
	https://github.com/bisq-network/bisq/pull/4322
2020-06-19 12:45:04 -03:00
ghubstan
1930411e61
Rmove blank line 2020-06-18 12:55:31 -03:00
ghubstan
b0e278f32e
Refactor getFundingAddresses to use memoization
Also reordered some import statements according to Bisq style rules.
2020-06-18 12:52:29 -03:00
Stan
9db9ee2906
Merge pull request #2 from dmos62/Z-getfundingaddresses-patch
Refactor getFundingAddresses to use memoization
2020-06-18 11:08:39 -03:00
Dominykas Mostauskis
c5134e14c2
Replace Tuple3 with memoization 2020-06-18 15:57:26 +02:00
Devin Bileck
68d8125d76
Combine separate gradlew clean and build commands into a single command 2020-06-17 22:35:02 -07:00
Devin Bileck
1d2c60f2f1
Update seednode README with Ubuntu 20.04 as an OS known to work well 2020-06-17 22:35:02 -07:00
Devin Bileck
0bab863ee9
Fix command shown in README used to install collectd service
The install_collectd_debian.sh script reads user input to obtain the
onion address. However, when you pipe the output of curl into the shell
you're making the script text be standard input of the shell, which
takes it in as commands to run. After that, there's nothing left to
read. Even if it were to try, it wouldn't get anything from the terminal
input, because it's not connected to it. The pipe has replaced standard
input for the shell process.

Instead, create a pipe for bash to read the output of curl from and
provide it as the script file argument. In this case, the standard input
of the script is still connected to the terminal, and read will work.
2020-06-17 22:35:02 -07:00
Devin Bileck
83e194686d
Update install scripts for Git LFS 2020-06-17 22:35:01 -07:00
ghubstan
258d1801d2
Factor duplicate unlocked wallet checks into new method
Response to comment in PR 4299:
https://github.com/bisq-network/bisq/pull/4299#discussion_r440769032

This PR should be reviewed/merged after PR 4309.
https://github.com/bisq-network/bisq/pull/4309
2020-06-16 12:48:41 -03:00
ghubstan
bac3ed5697
Call core wallets service methods from CoreApi
This change is a refactoring of the gRPC Wallets service
for the purpose of making CoreApi the entry point to
all core implementations.  These changes should have been
made in PR 4295.
See https://github.com/bisq-network/bisq/pull/4295

The gRPC Wallet proto def name was changed to Wallets because
this service manages BSQ and BTC wallets, and GrpcWalletService
was changed to GrpcWalletsService for the same reason.

This PR should be reviewed/merged after PR 4308.
See https://github.com/bisq-network/bisq/pull/4308

This PR's branch was created from the PR 4308 branch.
2020-06-15 16:43:26 -03:00
ghubstan
a7542e98bf
Add rpc method 'createpaymentacct'
This addresses task 4 in issue 4257.
    https://github.com/bisq-network/bisq/issues/4257

This PR should be reviewed/merged after PR 4304.
    https://github.com/bisq-network/bisq/pull/4304

This new gRPC PaymentAccounts service method creates a dummy
PerfectMoney payment account for the given name, number and fiat
currency code, as part of the required "simplest possible trading
API" (for demo).   An implementation supporting all payment
methods is not in the scope.

Changes specific to the new rpc method implementation follow:

* New createpaymentacct method + help text was added to CliMain.
  Help text formatting was also changed to make room for larger
  method names and argument lists.

* The PaymentAccount proto service def was renamed PaymentAccounts
  to avoid a name collision, and the new rpc CreatePaymentAccount
  was made part of the newly named PaymentAccounts service def.

* New GrpcPaymentAccountsService (gRPC boilerplate) and
  CorePaymentAccountsService (method implementations) classes were
  added.

* The gRPC GetPaymentAccountsService stub was moved from GrpcServer
  to the new GrpcPaymentAccountsService class, and
  GrpcPaymentAccountsService is injected into GrpcServer.

* A new createpaymentacct unit test was added to the bats test
  suite (checks for successful return status code).

Maybe bit out of scope, some small changes were made towards making
sure the entire API is defined in CoreApi, which is used as a
pass-through object to the new CorePaymentAccountsService.  In the
next PR, similar refactoring will be done to make CoreApi the
pass-through object for all of the existing CoreWalletsService
methods.  (CoreWalletsService will be injected into CoreApi.)
In the future, all Grpc*Service implementations will call core
services through CoreApi, for the sake of consistency.
2020-06-15 14:32:14 -03:00
huey735
07133421a6
Add link to scripts
Pointing to devinbileck's install_java scripts.
2020-06-15 12:01:21 +00:00
sqrrm
bdb7807131
Sign accounts with same name
If the user has an account that can sign, it signs other accounts with
the same holder name when they are added, or on startup if one of
several accounts with the same name got signer rights.
2020-06-14 20:08:22 +02:00
sqrrm
f02772e3a2
Add getOwnerId to PaymentAccountPayload for owner name comparison 2020-06-14 20:07:41 +02:00
ghubstan
b1228e5ea7
Add rpc method 'getaddressbalance'
This addresses task 2 in issue 4257
	https://github.com/bisq-network/bisq/issues/4257

This new gRPC Wallet service method displays the balance and number
of confimirmations of the most recent transaction for the given BTC
wallet address.

The new method required the usual boilerplate changes to grpc.proto,
CliMain, and GrpcWalletService.

Two unit tests to check error msgs was added to cli/test.sh.
2020-06-14 14:23:47 -03:00
ghubstan
2e415de4ad
Replace duplicate code in getFundingAddresses
Cleaned up the method body and improved the returned string's
formatting.  Also added a line for this method in the CLI help text.
2020-06-14 13:05:37 -03:00
sqrrm
86062d0ba7
Merge pull request #4302 from wiz/update-wiz-seednodes
Add V3 seednodes wizseed3 and wizseed7, retire seednode ef5qnzx6znifo3df
2020-06-14 17:42:03 +02:00
sqrrm
e338d84d93
Merge pull request #4298 from petrhejna/input-validation-for-voting-stake
Add validation for max voting-stake
2020-06-14 17:37:30 +02:00
sqrrm
284c5c2446
Merge pull request #4297 from petrhejna/add-revolut-currencies
Add all available Revolut currencies
2020-06-14 17:03:49 +02:00
Petr Hejna
1c8b062bf2
Add all available Revolut currencies 2020-06-14 16:47:07 +02:00
sqrrm
6aae5eb4ab
Merge pull request #4283 from jmacxx/restore_wallet_date_empty_feedback
Warn when restoring wallet seedwords without date
2020-06-14 15:08:22 +02:00
wiz
6100dc881d
Add V3 seednodes wizseed3 and wizseed7, retire seednode ef5qnzx6znifo3df
As part of the Tor V3 upgrade, and the effort to increase the number of
Bisq seednodes from 8 to 12, this PR adds 2 new V3 seednodes, and will
start the process to retire the old V2 seednode ef5qnzx6znifo3df.

The ef5qnzx6znifo3df seednode will continue operating for 2-3 months
during the retirement phase-out period, after which time we can filter
it out from the network for clients who have not upgraded if necessary.
2020-06-14 18:29:20 +09:00
ghubstan
85c96764fb
Add rpc method 'getfundingaddresses'
This addresses task #1 in issue https://github.com/bisq-network/bisq/issues/4257.

This new gRPC WalletService method displays the BTC wallet's list of
receiving addresses.  The balance and number of confirmations
for the most recent transaction is displayed to the right of each
address.  Instead of returning a gRPC data structure to the client,
the service method returns a formatted String.

If the BTC wallet has no unused addresses, one will be created and
included in the returned list, and it can be used to fund the wallet.

The new method required injection of the BtcWalletService into CoreWalletsService,
and the usual boilerplate changes to grpc.proto, CliMain, and GrpcWalletService.

Some of the next PRs (for #4257) will require some common functionality within
CoreWalletsService, so these additional changes were included:

  * a private, class level formatSatoshis function
  * a public getNumConfirmationsForMostRecentTransaction method
  * a public getAddressBalance method
  * a private getAddressEntry method

A unit test that verifies a successful return status was added to cli/test.sh.
2020-06-13 19:59:45 -03:00
Petr Hejna
eb2caff9f4
Add validation for max voting-stake 2020-06-13 02:43:55 +02:00
ghubstan
ec66b14986
Add rpc wallet(s) protection tests
This commit includes the following changes:

 * New tests for methods `lockwallet`, `unlockwallet`,
   `removewalletpassword`, and `setwalletpassword`.

 * New `getbalance` method error handing tests to verify
   error message correctness when wallet is locked.

 * Update to `getversion` method test -- now expects `1.3.4`.

 * Check for new `[params]` column header in help text.
2020-06-12 15:56:19 -03:00
ghubstan
b1146fdd12
Rename CoreWalletService -> CoreWalletsService
This change fixes the ambiguity in the original class name, which
implied it was a btc wallet service, not a bsq and btc wallets service.
2020-06-12 15:24:01 -03:00
sqrrm
9fcc4da738
Add ReceiverSelectorTest 2020-06-11 20:09:46 +02:00
sqrrm
752abce61e
Weighted payout scheme
Fix some conflicts from an earlier rebase
2020-06-11 19:40:25 +02:00
chimp1984
77362ff642
Add list to filter to set btc fee receiver addresses 2020-06-11 19:00:05 +02:00
Christoph Atteneder
289e013500
Update copyright notice 2020-06-11 13:29:23 +02:00
sqrrm
90583817b2
Merge pull request #4291 from ripcurlx/only-apply-fix-in-edit-offer-screen
Apply fix for #2798 only in edit offer view
2020-06-11 11:02:21 +02:00
sqrrm
7e0c82a791
Merge pull request #4153 from eboukamza/add-blockchain-explorer
Add blockchair mainnet and testnet explorers
2020-06-11 10:53:52 +02:00
Christoph Atteneder
8bb3386340
apply fix for #2798 only in edit offer view 2020-06-11 10:52:35 +02:00