Commit Graph

14966 Commits

Author SHA1 Message Date
jmacxx
74f7061061
Fix race between mempool notify / P2P notify causing failed trade 2021-08-30 10:00:38 -05:00
sqrrm
fc329f6f15
Merge pull request #5678 from bisq-network/release/v1.7.3
Release/v1.7.3
2021-08-30 14:29:27 +02:00
Christoph Atteneder
0e4278012b
Revert to SNAPSHOT version 2021-08-30 14:16:11 +02:00
sqrrm
58e09c96ee
Merge pull request #5666 from ghubstan/08-handle-extradata-in-editoffer
Adjust API 'editoffer' to PR 5651 (include extraData field when editing offer)
2021-08-30 10:46:23 +02:00
sqrrm
fe2c185437
Merge pull request #5675 from ripcurlx/update-data-stores-for-v1.7.3
Data store updates for v1.7.3
2021-08-28 12:06:40 +02:00
Christoph Atteneder
839175b27c
Resynced from last release and synced again 2021-08-27 20:02:14 +02:00
Christoph Atteneder
ce0b301cf1
Update data stores for v1.7.3 2021-08-27 09:30:43 +02:00
Christoph Atteneder
c036adb3eb
Update bitcoinj checkpoints for v1.7.3 2021-08-27 09:30:30 +02:00
Christoph Atteneder
b8f2ac7a68
Merge pull request #5673 from jmacxx/add_paysera_paxum
Add Payment Methods: Paysera and Paxum
2021-08-26 16:23:12 +02:00
jmacxx
984a269776
Add Payment Methods: Paysera and Paxum 2021-08-25 13:38:54 -05:00
ghubstan
84036bd862
Add TODOs (delete debug statement)
The new debug log statements included in this PR help trace add/remove
list item actions if problems are seen in the UI's OfferBook, after the
API 'editoffer' method is released.

They can and should be removed in a future PR if the released API feature
proves it did not introduce bugs into the UI.
2021-08-25 11:09:19 -03:00
ghubstan
98a5b1722c
Add missing detail to comment 2021-08-25 10:40:57 -03:00
ghubstan
4889da6bba
Remove redundant list.size check 2021-08-25 10:34:22 -03:00
wiz
e00ec92c9d
Pricenode: Remove the Exmo exchange as a price provider 2021-08-24 09:51:41 +02:00
Christoph Atteneder
abd0fd5724
Merge pull request #5671 from wiz/wiz/remove-exmo-from-pricenode
Pricenode: Remove the Exmo exchange as a price provider
2021-08-24 09:51:28 +02:00
wiz
df188c1b34
Only bind jmxremote management interface to 127.0.0.1 for pricenodes 2021-08-24 09:50:53 +02:00
Christoph Atteneder
714957bf11
Merge pull request #5670 from wiz/wiz/pricenode-jmxremote-management-bind-localhost
Only bind jmxremote management interface to 127.0.0.1 for pricenodes
2021-08-24 09:49:50 +02:00
wiz
3a5b8a94e0
Only bind jmxremote management interface to 127.0.0.1 for pricenodes 2021-08-24 14:48:28 +09:00
wiz
d3d2eaedf3
Pricenode: Remove the Exmo exchange as a price provider 2021-08-24 09:54:31 +09:00
Christoph Atteneder
9e72e5b445
Update translations for v1.7.3 2021-08-23 11:22:27 +02:00
Christoph Atteneder
ad95e5b3be
Bump version number for v1.7.3 2021-08-23 11:20:09 +02:00
ghubstan
59192e98f1
Do not filter on paylaod hash when deleting duplicate list items
Any and all view list items with a matching offerId should be
removed from view just before adding a new list item.
2021-08-22 10:24:18 -03:00
ghubstan
b93f6ea28e
Remove sequence-number checks from OfferBook
Checking offer payload hashes in OfferBook's onAdded and onRemove methods
is sufficient to prevent incorrect removal of offer list items from the
UI OfferBook view (where api 'editoffer' causes onRemoved to be called
after onAdded on peers).
2021-08-20 11:49:00 -03:00
ghubstan
fdc78b2fb5
Remove unused methods 2021-08-18 14:48:55 -03:00
ghubstan
fb4e00fb6b
Fix OfferBookService bug causing extra check in OfferBook.onRemoved
Hash of protectedStorageEntry (should be offerPayload) was sometimes
resulting in incorrect hash being sent to OfferBook listener methods
onAdded(offer,  hashOfPayload,  sequenceNumber), and
onRemoved(offer,  hashOfPayload,  sequenceNumber).
Hash of OfferPayload is correctly passed to listener with this change.

Sending the correct hash allows removal of a dubious code block that
removed a book view list item when hash compare failed, and no matching
offer existed in the OfferBookService.
See https://github.com/bisq-network/bisq/pull/5659#discussion_r689634240
2021-08-18 14:27:20 -03:00
ghubstan
859a5ab4e4
Merge branch '07-show-new-offer-with-pending-status' into 08-handle-extradata-in-editoffer 2021-08-16 14:31:03 -03:00
ghubstan
524a586b92
Merge branch '06-safe-offerbook-add-remove-events' into 07-show-new-offer-with-pending-status 2021-08-16 14:27:34 -03:00
ghubstan
59c0313277
Fix long method name
Resolves https://github.com/bisq-network/bisq/pull/5659#discussion_r687839333
2021-08-16 14:23:28 -03:00
ghubstan
d709338d63
Refactor 2 predicates as single predicate
Resolves https://github.com/bisq-network/bisq/pull/5659#discussion_r689631147
2021-08-16 14:17:28 -03:00
ghubstan
1c096d0e3a
Merge branch 'master' into 08-handle-extradata-in-editoffer
Resolve file conflicts resulting from merging PRs
    https://github.com/bisq-network/bisq/pull/5577
    https://github.com/bisq-network/bisq/pull/5651
2021-08-16 12:36:49 -03:00
sqrrm
15093720b9
Merge pull request #5625 from ripcurlx/unsigned-account-tooltip
Tooltip for unsigned accounts needs to provide more information
2021-08-16 12:15:43 +02:00
sqrrm
6881c3e0f7
Merge pull request #5640 from ripcurlx/update-public-key
Update expired public key
2021-08-16 11:03:12 +02:00
Christoph Atteneder
b9038fcf3a
Merge pull request #5651 from jmacxx/fix_edit_offer_extra_data
Fix issue with extraData field when editing offer
2021-08-16 10:17:51 +02:00
ghubstan
71a61c63da
Display Enabled=PENDING in CLI 'createoffer' output
A newly created offer has no OpenOffer+State (AVAILABLE || DEACTIVATED)
when displayed in the CLI's console.  This change adds a 'bool isMyPendingOffer'
to the OfferInfo proto + wrapper, and the CLI's console offer output formatter
uses it to determine if it should display a new offer's Enabled column value
as PENDING, instead of an ambiguous NO value.
2021-08-14 16:58:47 -03:00
ghubstan
6a4aceda7b
Handle API's edit+disable offer use case in UI.
This change is a refactoring for handling the removal of a peer UI's offer
item when it is deactivated and edited in the same CLI `editoffer` command.

On the API side, an `editoffer --price=N --enable=false` command results
in the edited offer not being re-published.  On a UI peer's side, the edited
offer is not added to the peer's storage, and the peer's onRemoved(offer)
listener event does not find a storage entry with matching payload-hash.

This fix assumes an offer that is not in the local store should be removed
from the UI's view list -- when the onRemoved method's hashOfPayload does
not match the UI's view list item's hashOfPayload.
2021-08-13 14:53:17 -03:00
Christoph Atteneder
9db2c18f2c
Merge pull request #5649 from sqrrm/refund-double-payout-fix
Avoid creating more than one refund payout
2021-08-12 20:43:22 +02:00
ghubstan
713867b990
Remove comment (question answered) 2021-08-11 11:29:17 -03:00
ghubstan
1a7ad0be0d
Merge branch 'master' into 06-safe-offerbook-add-remove-events 2021-08-07 14:27:11 -03:00
ghubstan
d3508d2037
Revert logback debug config changes
(Accidentally included in last commit.)
2021-08-07 14:11:47 -03:00
ghubstan
6e2400fb0f
Ensure UI OfferBook items are correctly added and removed
Using the API's CLI to edit offers can sometimes result in add/remove messages
being received on peers in the same batch of envolopes, and these messages
are sometimes passed to the UI in (1) add, (2) remove order.  This can result in
a newly edited offer being removed immediately after being added to the OfferBook
list. This change uses storage entry sequence number and storage entry payload
hash comparisons to avoid the problem.

- OfferBookListItem Added new constructor taking P2PDataStorage.ByteArray hashOfPayload,
  and int sequenceNumber params.  Added a new toString() method.

- OfferBook Added new checks on OfferBookListItem hashOfPayload and sequenceNumber while
  determining if offer candidates should be added or removed from the UI's OfferBook List.
  See OfferBook contructor's implementation of OfferBookChangedListener#onAdded and
  OfferBookChangedListener#onRemoved.  Added many comments explaining the add/remove rules,
  and plenty of debug statements to help trace the add/remove event process.

- OfferBookService#OfferBookChangedListener Added new P2PDataStorage.ByteArray hashOfPayload,
  and int sequenceNumber params to listener's onAdded and onRemoved method signatures.
  Added these two new paramater values to listener.onAdded and listener.onRemoved calls.

- TakeOfferDataModel Replaced unused, old tradeManager param in offerBook.removeOffer()
  with (null) P2PDataStorage.ByteArray hashOfPayload, and (-1) int sequenceNumber params.
  OfferBook will remove the candidate offer as before.

- MarketAlerts Adjusted onAdded() & onRemoved listener method signatures, even though
  new P2PDataStorage.ByteArray hashOfPayload, int sequenceNumber params are not used
  by the implementations.
2021-08-07 14:06:38 -03:00
sqrrm
374e76a4fe
Merge pull request #5643 from jmacxx/prevent_negative_mining_display
Prevent negative suggested mining fee when burning BSQ for fees
2021-08-06 12:25:11 +02:00
ghubstan
369372880d
Merge branch 'master' into 05-update-api-beta-test-guide 2021-08-04 16:41:52 -03:00
jmacxx
8d9a03bc39
fix issue with extraData field when editing offer 2021-08-02 22:22:29 -05:00
ghubstan
094bc52552
Revert "Fix peer add(offer) & remove(offer) event order problem"
This reverts commit add6536402.
2021-08-02 09:52:42 -03:00
sqrrm
8c666dba92
Avoid creating more than one refund payout
Double clicking the close ticketbutton creates two payout transactions.
This fix makes sure only one payout transaction is created for the
dispute.

Restarting the client allows for creating another refund transaction
for the dispute if needed.
2021-08-02 10:17:17 +02:00
Christoph Atteneder
fa4238c162
Merge pull request #5644 from jmacxx/fix_payment_account_deserialize_issue
Fix issue for deprecated payment account imported from backup
2021-08-01 20:50:20 +02:00
Christoph Atteneder
5bcc207d8a
Merge pull request #5639 from jmacxx/litecoin_account_segwit
Allow LTC accounts to use segwit addresses
2021-08-01 20:47:20 +02:00
ghubstan
add6536402
Fix peer add(offer) & remove(offer) event order problem
Use LinkedHashSet to maintain NetworkEnvelope ordering when Connection#onBundleOfEnvelopes
calls listeners.

Connection#onBundleOfEnvelopes builds a set from an ordered list of NetworkEnvelopes,
then calls listeners during set iteration.  The envelope list ordering is lost if a
HashSet is built, but maintained by switching to a LinkedHashSet.

Losing the envelope ordering becomes a problem if the peer receives a RemoveDataMessage
and an AddDataMessage in the same batch of envelopes, and relays them to listeners
in the wrong (random) order.  For example, an API 'editoffer' call may result in the
edited offer being added, then immediately remove from their UI's offer book.
2021-07-30 17:01:25 -03:00
ghubstan
95bbb41e51
Add missing trigger-price param 2021-07-30 12:02:18 -03:00
ghubstan
b4ee6dbc12
Do not start test harness deamons in dbg mode by default 2021-07-30 11:58:12 -03:00