Commit graph

3865 commits

Author SHA1 Message Date
chimp1984
3a3f69aafa
Rename class 2020-04-08 14:02:42 +02:00
chimp1984
c18c55f6b0
Add BuyerVerifiesDonationAddress task
Buyer was not verifying if the donation address is either the default
DAO param address or the recent one changed by DAO voting. We do not
support past DAO param addresses to avoid that past addresses receive
funds.
2020-04-08 14:00:48 +02:00
Christoph Atteneder
538e6fc906
Update data stores for v1.3.0 2020-04-08 01:00:17 +02:00
Christoph Atteneder
956331d9c4
Revert to previous local node information 2020-03-16 15:04:30 +01:00
Christoph Atteneder
2926b646ec
Revert to previous local node information
Co-Authored-By: sqrrm <sqrrm@users.noreply.github.com>
2020-03-16 15:04:22 +01:00
Dominykas Mostauskis
1d02aaf1a2
get rid of empty step in BisqSetup 2020-03-16 15:04:16 +01:00
Dominykas Mostauskis
af03629882
Revert to only check local BTC node's port
Testing showed that the new mechanic for checking a local BTC node's
configuration is unstable. This commit reverts to just checking if the
relevant port is open. The recent refactoring and centralization of
logic is still in place.
2020-03-16 15:04:08 +01:00
sqrrm
a551eef7d4
Dump delayed txs of closed trades 2020-03-16 09:18:40 +01:00
Dominykas Mostauskis
7b60744b08
reformat exception handling 2020-03-14 11:24:59 +01:00
Dominykas Mostauskis
4d9a2bd5a9
put in future timeout in case bitcoinj hangs 2020-03-14 11:24:48 +01:00
Christoph Atteneder
c306781252
Remove redundant closing of connection
Fixes #4052, as the peer.close() already calls closeConnection if
a writeTarget is established successfully.
2020-03-13 17:46:53 +01:00
sqrrm
94999670ec
Allow refresh at least every 4 hours 2020-03-11 09:00:47 +01:00
Christoph Atteneder
a183d3bb78
Update translations for v1.2.8 2020-03-10 18:12:56 +01:00
sqrrm
bad27f2a07
Log delayed payout tx bytes as soon as it's signed during trade init 2020-03-10 17:57:54 +01:00
Christoph Atteneder
d786375710
Update bitcoinJ checkpoints 2020-03-10 09:28:29 +01:00
Christoph Atteneder
6d457e4163
Merge pull request #4021 from freimair/update_offer_address_on_clean
Update offer address to new hidden service files
2020-03-10 09:01:30 +01:00
Christoph Atteneder
698716d17a
Merge pull request #4029 from sqrrm/dump-failed-delayedtx
Dump failed delayedtx
2020-03-09 11:58:27 +01:00
wiz
622613ccbf
Update URL for mempool.ninja blockchain explorer 2020-03-08 02:32:45 +09:00
sqrrm
529f0a1d39
Merge pull request #4024 from dmos62/network-info-local-bitcoin-node-background-info
Changes to local BTC node reminder in Settings > Network info
2020-03-07 16:40:09 +01:00
sqrrm
df54c121f6
Also dump failed trades delayed payout txs 2020-03-05 18:49:39 +01:00
sqrrm
40fb1ab49f
Move dump delaytx to separate class 2020-03-05 18:28:08 +01:00
sqrrm
879c3f2eb2
Merge pull request #4015 from freimair/remove-uid
Remove unused uid in fee provider service
2020-03-05 18:04:54 +01:00
Dominykas Mostauskis
2105b219c9
Changes to local BTC node info in Settings 2020-03-03 18:50:44 +01:00
Christoph Atteneder
fa56b91f6d
Revert "Vote Reveal - Silent Fail" 2020-02-28 16:01:03 +01:00
Florian Reimair
ff0d473778
Added node address update 2020-02-28 11:21:20 +01:00
Florian Reimair
b8f0532dba
Move capabilities update 2020-02-28 11:21:20 +01:00
Florian Reimair
8abc52b257
Move protocol version update 2020-02-28 11:21:04 +01:00
sqrrm
1d1cba1e4d
Merge pull request #3982 from dmos62/local-btc-node-configuration-check
Add local Bitcoin node configuration detection
2020-02-27 15:29:49 +01:00
Dominykas Mostauskis
85e4515f53
Remove reference to removed constant 2020-02-27 12:14:32 +01:00
Florian Reimair
edcc8338f2
Remove unused uid in fee provider service
Bisq frequently (once per minute) queries our price nodes for up-to-date
fee information. It does so by HTTP GET request. However, it provided
a UID via the "User-Agent" HTTP header field. This UID has been a random
number which changed everytime Bisq gets started up.

This UID has never been used. Thus, remove it.
2020-02-27 11:38:10 +01:00
Chris Beams
57b7041dfe
Remove unnecessary LOCAL_BITCOIN_NODE_PORT constant
This was originally added with the intention that the local Bitcoin node
port could be customized, but in fact it never could be, because Guice
configuration always hard-wired the value to the default port for the
CurrentBaseNetwork's Parameters (eg. 8333 for BTC_MAINNET).

This change removes the constant, removes any Guice wiring and injection
and localizes the hard-coded assignment to the LocalBitcoinNode
constructor to simplify and make things explicit.

If it is desired to allow users to specify a custom port for their local
Bitcoin node, a proper option shoud be added to Config. In the meantime,
users may work around this by using `--btcNodes=localhost:4242` where
4242 is the custom port. Note however, that the pruning and bloom filter
checks will not occur in this case as the provided node address will not
being treated as a LocalBitcoinNode.
2020-02-27 09:53:40 +01:00
Chris Beams
c1a99ccc55
Polish LocalBitcoinNode method names and visibility
- Rename #willUse => #shouldBeUsed
 - Rename #willIgnore => #shouldBeIgnored
 - Reduce visibility of methods where appropriate
 - Edit Javadoc typos and use @link syntax where appropriate
2020-02-27 09:35:36 +01:00
Chris Beams
b93ca2b2b1
Polish formatting 2020-02-26 21:24:38 +01:00
Dominykas Mostauskis
fdaced460f
Changes to Background information popup 2020-02-26 17:20:55 +01:00
Dominykas Mostauskis
30578bfa9d
Have detection work on other network modes
This makes detection work on other BTC network modes, not only mainnet.
2020-02-26 17:09:01 +01:00
Dominykas Mostauskis
a92b6ad9dc
Minor requested changes (non-github batch) 2020-02-26 14:34:08 +01:00
dmos62
6dec780ab4
Minor requested changes (github batch)
Co-Authored-By: Christoph Atteneder <christoph.atteneder@gmail.com>
2020-02-26 14:21:03 +01:00
Stephan Oeste
d5bb9c4425
Moved one btc node to new host
Moved node2.emzy.de to a new host.
IP address updated.
2020-02-26 13:26:45 +01:00
Christoph Atteneder
a6d874c3c1
Merge pull request #3758 from bisq-3408/master
Vote Reveal - Silent Fail
2020-02-26 12:53:03 +01:00
Dominykas Mostauskis
2a57ecddfc
Fix failing test 2020-02-25 16:22:51 +01:00
Dominykas Mostauskis
6b4878ada8
Centralize some of local BTC node logic
Introduces LocalBitcoinNode::willUse and ::willIgnore to move logic that
was previously littered throughout the codebase into one place. Also,
changes the usages of LocalBitcoinNode to be more precise, specifying
which of these questions are being asked:

- "is there a local BTC node" (isDetected);
- "is it well configured" (isWellConfigured and isUsable);
- "will we ignore a local BTC node even if we found a usable one"
  (willIgnore);
- "is there a usable local BTC node and will we use it" (willUse).

These changes make related logic much easier to maintain and to read.
2020-02-25 15:56:02 +01:00
Dominykas Mostauskis
aceb608e3a
Reorder methods 2020-02-25 14:18:36 +01:00
Dominykas Mostauskis
0bbbe8c1e9
Perform checks automatically on first query
It's quite amazing how obvious this was, yet I missed it for such a long
time. Simplifies usage of LocalBitcoinNode and its internals even more
so. Fixes #4005. The way we structured LocalBitcoinNode was as if the
detection checks were expensive, but they're not. Previously, in some
cases we would notice that a local BTC node wouldn't be used even if it
was detected, so we would skip these checks. This optimization now
doesn't happen. It might be reimplemented in a coming change where more
local BTC node logic is moved into LocalBitcoinNode, but, even if it's
not, this check is fairly cheap. A notable exception is if the local BTC
node is not responding, which would cause us to wait for a timeout, but
if that is the case the mentioned optimization wouldn't help (most of
the time).
2020-02-25 14:04:34 +01:00
Christoph Atteneder
6537e13371
Add ARS as supported currency for MoneyGram
Fixes #4000.
2020-02-25 10:07:46 +01:00
Dominykas Mostauskis
7848836adc
Formating changes 2020-02-22 01:30:09 +02:00
Dominykas Mostauskis
08cd31b242
Silence NioClient and NioClientManager loggers 2020-02-21 23:53:02 +02:00
Dominykas Mostauskis
65177fcc4c
Fix unchecked usage of LocalBitcoinNode.isUsable() 2020-02-21 23:52:36 +02:00
dmos62
e6dea3d3ed
Improve marking that method is empty
Co-Authored-By: sqrrm <sqrrm@users.noreply.github.com>
2020-02-18 17:30:02 +02:00
Dominykas Mostauskis
daa1b0b20b
Minor changes to satisfy Codacy or clarify why it fails 2020-02-18 13:02:39 +02:00
Dominykas Mostauskis
74c946a28b
Remove defunct test suite
The workings of LocalBitcoinNode significantly changed, especially how
detection works. Before, we were only checking if a port was open, but
now we're actually performing a Bitcoin protocol handshake, which is
difficult to stub. For these reasons the old tests are irrelevant and
replacement tests were not written.
2020-02-18 12:31:15 +02:00