Commit graph

5454 commits

Author SHA1 Message Date
chimp1984
359dc3759d
Add getSignedWitnessSetCache
The getSignedWitnessSet is called very often and is a bit
expensive. We cache the result in that map but we
remove the cache entry if we get a matching SignedWitness
added to the signedWitnessMap.
2020-12-15 19:15:40 -05:00
chimp1984
1314fd61a5
Add accountAgeWitnessCache
The accountAgeWitnessMap is very large (70k items) and
access is a bit expensive. We usually only access less
than 100 items, those who have offers online. So we
use a cache for a fast lookup and only if
not found there we use the accountAgeWitnessMap and
put then the new item into our cache.
2020-12-15 19:15:40 -05:00
chimp1984
ecad724046
Add null checks, improve comment 2020-12-15 19:08:37 -05:00
sqrrm
f61e62c7c0
Merge pull request #4956 from chimp1984/sort-paymentmethods-by-name
Sort payment methods by display string not by id.
2020-12-16 00:17:26 +01:00
sqrrm
9b8073b94a
Merge pull request #4954 from chimp1984/various-small-improvements
Various small improvements
2020-12-15 23:04:15 +01:00
sqrrm
bc60db39ae
Merge pull request #4943 from chimp1984/add-tx-broadcast-to-mempool-explorer-api
Add tx broadcast to mempool explorer api
2020-12-15 22:57:37 +01:00
sqrrm
26024bd6ec
Refactor: rename methods, move return statement 2020-12-15 19:35:49 +01:00
sqrrm
e0f4dc22e7
Fix formatting 2020-12-15 19:27:13 +01:00
sqrrm
4c33f9c999
Sign imported AccountAgeWitness,PubKey
Change the specific sign window to sign an imported account in the form
of accountAgeWitnessString,pubKeyString. The SignSpecificWitness never
worked due to missing pubKey data and this is a way to import the missing data.
2020-12-15 16:08:06 +01:00
ghubstan
a341173412
Merge branch 'master' into 09-scratch 2020-12-15 11:13:37 -03:00
chimp1984
0f084d3aec
Use ConcurrentHashMap
Add comment
2020-12-15 09:05:33 -05:00
sqrrm
de25105fa8
Copy account data to clipboard
Use ctrl+c to copy accountagewitness and pubkey to clipboard in a format to
be used by arbitrator to sign the account
2020-12-15 14:53:34 +01:00
chimp1984
7e145739c3
Cache hash to avoid expensive hash operation. 2020-12-15 01:05:16 -05:00
chimp1984
1ddde42e17
Keep Date as transient field to avoid recreating a
Data object at each getDate call.

Add JsonExclude to Offer.currencyCode

getDate get called very often and we have > 80k objects.
2020-12-15 01:02:49 -05:00
chimp1984
9fc4f61bf6
Cache currencyCode
Extract variable

getCurrencyCode get called very often (Comparatos) so we cache result.
2020-12-15 00:59:05 -05:00
chimp1984
5112b1a54b
Cache results of isFiatCurrency and isCryptoCurrency
They are called very often and accumulate cpu time as
shown in profilers.
2020-12-15 00:54:26 -05:00
jmacxx
b1d22af1ae
Privacy improvements for manual payout
Redesign the UI
Add import/export of payout settings
Add ability to import from mediation ticket
Mediator does not need private key
User can sign using own wallet or private key
Validation of input fields
Calculate the tx fee based on inputs
Display of the generated txid & hex so it can be checked
2020-12-14 22:19:37 -06:00
chimp1984
7bfbd0fd79
Change handling of delay at republishing
The delay was too long. Some users have 100 - 200
offers and with the 700 ms delay it takes 70-140 sec.
This causes more stress for the network and UI due
permanent adding of offers. We decreased delay to 30 ms per offer.
So with 200 offers it would be about 6 sec. Maybe we could reduce
it even further but as it is hard to test in the live network with
so many offers it is better to not be too radical with the change.
2020-12-14 21:32:35 -05:00
chimp1984
b55313054a
Cleanup
Remove debug and trace logs
Add curly brackets
2020-12-14 21:29:07 -05:00
sqrrm
0e7dd21745
Merge pull request #4916 from chimp1984/fix-access-from-wrong-thread-at-wallet-restore
Property fields must not be set from non JavaFX threads.
2020-12-14 23:56:14 +01:00
chimp1984
5c68ad0b47
Sort payment methods by display string not by id.
Apply sorting in drop down boxes.
2020-12-14 14:42:15 -05:00
Christoph Atteneder
7d12b94c6a
Merge pull request #4933 from chimp1984/add-num-items-to-tables
Improve funds and portfolio screens
2020-12-14 19:48:55 +01:00
Christoph Atteneder
6ae33fe5f2
Merge pull request #4935 from chimp1984/add-wallet-info-view
Add wallet info view
2020-12-14 19:48:23 +01:00
chimp1984
cb289845b6
Add reference to bitcoin RPC error codes 2020-12-14 13:08:12 -05:00
ghubstan
a0f1c22d19
Merge branch 'master' into 08-scratch 2020-12-14 15:02:21 -03:00
chimp1984
33cf657d1d
Clone txBroadcastServices so we do not manipulate source list 2020-12-14 13:02:15 -05:00
ghubstan
5522d0c53e
Add new api method gettransaction
This change was prompted by the recent changes in the main branch to
allow a tx memo field to be set from the UI and API.

This and the prior PR address the API's need to be able to fetch a
tx (with a memo).  The API can now get a completed trade's withdrawal
txid and pass it as a gettransaction parameter.

See previous PR "Append nullable withdrawalTxId field to Trade".

	https://github.com/bisq-network/bisq/pull/4937

A summary of changes by file:

grpc.proto

- Added withdrawalTxId field to existing TradeInfo proto & wrapper.
- Reordered fields in TradeInfo proto.
- Added new fields to be displayed by TxInfo proto in CLI.
- Fixed typo: unsetTxFeeRatePreference -> UnsetTxFeeRatePreference.
- Added new GetTransaction rpc.

GrpcWalletsService - Added new getTransaction gRPC boilerplate.

CoreWalletsService - Added new getTransaction implementation.

TxInfo - Added the new fields for displaying a tx summary from CLI.
This is not intended to be more than a brief summary;  a block explorer
or bitcoin-core client should be used to see the complete definition.

TradeInfo - Added the new withdrawalTxId field defined in grpc.proto.

CliMain - Added new 'case gettransaction'.

TransactionFormat - Formats a TxInfo sent from the server to CLI.

ColumnHeaderConstants - Added console headers used by TransactionFormat.

TradeFormat - Displays a completed trade's WithdrawalTxId if present.

Apitest - Adjusted affected tests: assert tx memo is persisted and
test gettransaction.
2020-12-14 15:01:03 -03:00
chimp1984
478e1224e8
Use MemPoolSpaceTxBroadcaster for withdrawing
funds and for empty wallet call.
2020-12-14 12:52:32 -05:00
chimp1984
f26e76c908
Only check for code 2020-12-14 12:30:37 -05:00
chimp1984
b9b4690671
Add null checks for txId 2020-12-14 12:28:08 -05:00
chimp1984
910441125e
Return if not mainnet 2020-12-14 12:11:24 -05:00
chimp1984
f0eefe7943
Add MemPoolSpaceTxBroadcaster 2020-12-14 11:35:24 -05:00
chimp1984
7d06bf3803
Add mempool nodes to Preferences 2020-12-14 11:23:51 -05:00
chimp1984
149b52859a
Add wallet info view with balance, xpub keys,
hd paths and button to open wallet details
2020-12-14 08:25:46 -05:00
Christoph Atteneder
810c0da0f9
Merge pull request #4930 from chimp1984/use-historical-data-store-for-account-age
Use HistoricalDataStoreService for AccountAgeWitnessStorageService
2020-12-14 11:28:18 +01:00
Christoph Atteneder
b8cec17f8e
Merge pull request #4944 from chimp1984/rename-tw-account-currency-selection
Improve TransferWise account
2020-12-14 11:26:50 +01:00
chimp1984
88f26f9324
Do not autofill all currencies by default but keep all unselected. 2020-12-13 23:50:28 -05:00
chimp1984
484a6be379
Rename 'Supported currencies' to
'Currencies for receiving funds'
2020-12-13 23:49:57 -05:00
chimp1984
ad2a329e08
Improve log 2020-12-13 17:26:09 -05:00
chimp1984
06ce1b6787
Improve thread name 2020-12-13 17:25:49 -05:00
chimp1984
f7790a6b50
Rename PriceNodeHttpClient to PriceHttpClient 2020-12-13 17:19:39 -05:00
chimp1984
3d8d445994
Use @Singleton annotation instead of definition in module 2020-12-13 17:19:02 -05:00
chimp1984
5d664e915e
Improve logs 2020-12-13 17:18:36 -05:00
chimp1984
5be2ea5830
Use dedicated HttpClient for fee requests
We used the same HttpClient for fee and price requests, which cause
problems when one request got completed and closed the connection
at finalize.
2020-12-13 17:17:52 -05:00
chimp1984
561639f046
Check if we have a pending request and return if thats the case 2020-12-13 17:04:24 -05:00
chimp1984
9496691f76
Refactor: Rename 'requestWithGET' to 'get' 2020-12-13 15:23:36 -05:00
ghubstan
6aa385e494
Append nullable withdrawalTxId field to Trade proto message
The withdrawalTxId field will be set in TradeManager#onWithdrawRequest
upon successful trade completion and withdrawal of funds.

Persisting withdrawalTxId will allow the api and ui to find the withdrawalTxId
for a completed trade after the seller withdraws funds to an external wallet.
In turn, the withdrawal tx's memo field will be accessible in a new (todo)
api getTx(txID) api method.

Changed:

- Appended field 'string withdrawal_tx_id = 40' to pb.proto's Trade message.

- Added nullable 'String withdrawalTxId' to Trade entity class.

- Added trade.setWithdrawalTxId(transaction.getTxId().toString()) in
  TradeManager#onWithdrawRequest's callback.
2020-12-12 12:01:55 -03:00
chimp1984
4d8a327567
Add enable/diable all toggle button to open offers
Add search field to openoffer and failed trades
Improve search
2020-12-11 00:21:47 -05:00
chimp1984
d3b68bf9e6
Add num items text field below tables
Move filter in history to top, fix wrong label
Add export to cvs to reserved and locked balances
2020-12-10 11:20:54 -05:00
chimp1984
bc1f6ddac5
Show num trades > 9 as number (not as star) for main menu badge 2020-12-10 11:18:27 -05:00