Commit Graph

3055 Commits

Author SHA1 Message Date
Manfred Karrer
d57852df34
Merge pull request #2536 from oscarguindzberg/txbroadcaster-fix
TxBroadcaster improvements
2019-03-13 18:02:31 -05:00
Oscar Guindzberg
48f159d694 TxBroadcaster improvements 2019-03-13 19:37:56 -03:00
Manfred Karrer
d235e9c08e
Avoid logging at startup 2019-03-13 12:50:05 -05:00
Manfred Karrer
76543bb039
Merge pull request #2528 from ben-kaufman/get-only-accepted-proposals
Fix bug UI treats rejected proposals as accepted
2019-03-12 15:05:57 -05:00
Manfred Karrer
dbb0ba32e1
Add check for address 2019-03-11 22:15:33 -05:00
Manfred Karrer
f56041383f
Update UI, remove checkArgument call 2019-03-11 20:32:39 -05:00
Manfred Karrer
bbec682d98
Add UI for Dao state monitor
Refactor dao state monitor domain.
Add support for requesting all hashed from genesis from a peer which is
in conflict (can help to find at which block the issue started).
2019-03-11 18:32:48 -05:00
Oscar Guindzberg
16f01332ac Stress on the label that Bisq will be shutdown after restore 2019-03-11 16:37:25 -03:00
Manfred Karrer
cdce61c128
Merge pull request #2521 from ben-kaufman/dao-feedback-popup
Added  feedback popup for DAO test users
2019-03-11 10:44:33 -05:00
Manfred Karrer
c00cf99f22
Merge pull request #2524 from ManfredKarrer/improve-restore-wallet-from-seed-process
Improve restore wallet from seed process
2019-03-11 09:13:53 -05:00
Ben Kaufman
fee8d9ff54 Get only accepted bonded role proposals
Fix rejected bonded role proposal showing as accepted
2019-03-11 14:34:22 +02:00
Ben Kaufman
d07493efbc Get only accepted remove asset proposals
Fix rejected remove asset proposals showing as accepted
2019-03-11 14:22:53 +02:00
Ben Kaufman
ea4466c479 Use services instead of wallet and fix text 2019-03-11 08:13:44 +02:00
Ben Kaufman
a5a068a246 Fix popup wording 2019-03-11 06:45:03 +02:00
Manfred Karrer
d3349864ae
Automatically restart after restore 2019-03-10 23:40:25 -05:00
Manfred Karrer
82ed732bdd
Replace addTransactionConfidenceEventListener
Use addCoinsReceivedEventListener and addCoinsSentEventListener instead
of addTransactionConfidenceEventListener as
addTransactionConfidenceEventListener has much more overhead.
I could not reproduce anymore the balance issues I had when I used that
approach during development earlier.
2019-03-10 23:26:26 -05:00
Manfred Karrer
9ed109330a
Fix index out of bound issues
At Capabilities I got an exception after going back from a new dev
branch to master and getting p2p network data from nodes still running
on the dev branch as that newly added capability was outside of the
existing scope.

I found another potential issue with DaoPhase.Phase and added a check
there as well.
2019-03-10 22:40:26 -05:00
Manfred Karrer
e7bfba0b3c
Add comment 2019-03-10 22:11:40 -05:00
Manfred Karrer
d09e770751
Add parseBlockchainComplete check
Add parseBlockchainComplete check for onParseBlockChainComplete
before calling onParseBlockChainComplete to avoid duplicated calls of
onParseBlockChainComplete. Happened if there was only one seed node.
2019-03-10 22:11:32 -05:00
Manfred Karrer
fcd7997582
Create chain of dao state hashes for monitoring consensus issues
We create a chain of hashes of the dao state starting from the genesis
block height and using the previous hash in the hash. This ensures that
the history need to be correct if a particular hash at a block height is
correct. We request from seed nodes the last 10 hashes and broadcast to
our peers our hash at each new block. We build our list in memory and
listen on the new onSnapShotApplied event to start building our chain
from the genesis height up to the last snapshot block and after that
from each parsed block.
If we detect a mismatch we store it in a collection and the UI can show
a warning to the user.
We added also the onDaoStateChanged handler to the DaoStateListener.
This event is called after all parsing is completed and listeners have
completed their work. We must not use time based delays in the listener
code otherwise we would get changed our dao state after that event.
To detect such we added a assert method to throw an exception if the
dao state gets changed after the allowDaoStateChange is set to false.
2019-03-10 22:10:12 -05:00
Ben Kaufman
f7f91da927 Added feedback popup for DAO test users 2019-03-10 15:43:49 +02:00
Manfred Karrer
40b6505fd9
Add monitoring for hash of DaoState 2019-03-08 20:23:44 -05:00
Manfred Karrer
2a4270db3c
Merge branch 'master' into add-hash-of-dao-state 2019-03-08 13:58:41 -05:00
Manfred Karrer
22c03884d5
Add comment 2019-03-08 13:51:49 -05:00
Manfred Karrer
0d0713bad5
Remove optional setting of pubKeyScript
We want to have a deterministic dao state. The PubKeyScript in the
TxOutput was the only optional field which was only set in the
dumpBlockchainData program argument was set as it was only required for
the json dump for the explorer. It has 50 bytes of data which is about
20% of the txOutput data size. We prefer atm to avoid additional
complexity which would be created if we would handle that optional
field (e.g. exclude from hash creation).
The property might be useful as well for other use cases in future.
2019-03-08 13:47:35 -05:00
Manfred Karrer
257550ac81
Merge pull request #2515 from ManfredKarrer/make-vote-result-json-determinisitic
Make vote result json deterministic
2019-03-08 13:06:23 -05:00
Manfred Karrer
07c0d6a4ff
Update seed node operator 2019-03-08 13:01:23 -05:00
Manfred Karrer
ca01376ffc
Merge pull request #2517 from ManfredKarrer/fix-missing-balance-at-restore-from-seed-words
Fix missing balance at restore from seed words
2019-03-08 12:08:49 -05:00
Manfred Karrer
03023d6338
Remove myAddress from docs and scripts as it is not used/needed anymore 2019-03-08 10:58:53 -05:00
Manfred Karrer
28a28983dc
Add missing address entry items at restore from seed words 2019-03-07 23:41:21 -05:00
Manfred Karrer
01f3bdc557
Make vote result json deterministic 2019-03-07 17:53:30 -05:00
Manfred Karrer
9a5695dedc
Fix missing support for localhost seed node addresses 2019-03-07 17:23:05 -05:00
Manfred Karrer
1292f77daa
Merge branch 'master' of https://github.com/bisq-network/bisq 2019-03-07 16:36:54 -05:00
Christoph Atteneder
0a42b15972
Improve wording for security deposit 2019-03-07 18:15:17 +01:00
Manfred Karrer
d9f9baf87a
Update comments 2019-03-07 11:29:56 -05:00
Florian Reimair
9418c1d7a3
Fix default regtest seednodes 2019-03-07 17:08:49 +01:00
Florian Reimair
b27befed63
--myAddress property is not needed anymore 2019-03-07 17:08:49 +01:00
Florian Reimair
e15d99e8ae
Use resourceAsStream so it works on files in .jar as well 2019-03-07 17:08:49 +01:00
Florian Reimair
de93a6fa1b
Revert "Revert 2473067b090603dec983fa18995453bdd6d8de94"
This reverts commit a9ee15d9f6.
2019-03-07 17:08:49 +01:00
Manfred Karrer
75f90e56ba
Add dummy instance for deprecated payment methods
To show display string of payment method we need to create an instance
2019-03-06 22:44:49 -05:00
Manfred Karrer
1eeb47cef7
Add removed deprecated payment methods again as it would break
trade history

We got some reports that the trade history was gone and it turned out
the removal of the deprecated payment methods caused an exception when
reading the persisted closed trades. So we have to keep that code to not
break old db files.
2019-03-06 22:38:40 -05:00
Manfred Karrer
1ef854f510
Merge pull request #2127 from oscarguindzberg/bisq-version2-tx-support
Basic support for version 2 transactions.
2019-03-06 18:46:42 -05:00
Manfred Karrer
76e753f35a
Merge pull request #2478 from oscarguindzberg/bitcoinj-0.14.7
Use bitcoinj 0.14.7
2019-03-06 18:43:41 -05:00
Manfred Karrer
73eea7927a
Merge pull request #2469 from freimair/refactor_capabilities
Refactor capabilities and other P2P-related stuff
2019-03-06 18:38:23 -05:00
Manfred Karrer
ff023ce32f
Merge pull request #2504 from ben-kaufman/export-voting-history
Added button to export voting history into JSON
2019-03-06 16:52:59 -05:00
Ben Kaufman
873a57eea9 Added button to export voting history into json 2019-03-06 15:31:43 +02:00
Florian Reimair
00872427de
Get rid of Capability ordinals
github.com/AlDanial/cloc v 1.80  T=0.19 s (5.3 files/s, 5.3 lines/s)
-------------------------------------------------------------------------------
                             files          blank        comment           code
-------------------------------------------------------------------------------
 same                            0              0            913           3405
 modified                       28              0              6            145
 added                           1             18             36             58
 removed                         0              9              3            103
-------------------------------------------------------------------------------
2019-03-06 09:29:26 +01:00
Manfred Karrer
92b91ba391
Merge pull request #2500 from ManfredKarrer/remove-dev-logging
Remove Log.traceCall methods
2019-03-05 11:52:21 -05:00
Manfred Karrer
dd7c578a66
Remove if statement 2019-03-05 11:25:34 -05:00
Manfred Karrer
b711f571a4
Cleanup some log.debug calls 2019-03-05 11:24:07 -05:00
Manfred Karrer
1d0fdf4c55
Cleanup some log.trace calls 2019-03-05 11:11:04 -05:00
Manfred Karrer
7fd2030003
Remove Log.traceCall methods
Florian reported that they consume quite a bit of performance.As
they have not been used for development testing since long we should
better remove those.
2019-03-05 10:32:39 -05:00
Christoph Atteneder
6381078d78
Update translations 2019-03-05 16:04:16 +01:00
Christoph Atteneder
279b38bf2e
Add information icon to buyer security deposit showing the deposit amount in BTC 2019-03-05 13:07:24 +01:00
Manfred Karrer
cffa42a7a2
Update security deposit values 2019-03-05 00:04:24 -05:00
Manfred Karrer
e04d042e4e
Update security deposit values 2019-03-04 23:48:41 -05:00
Manfred Karrer
b8f8fbff20
Use percentage based value for security deposits
Use percentage based value of trade amount for buyer and seller
security deposit.
To ensure that the BTC value is not getting too low, we apply a min.
value for both.
2019-03-04 23:35:35 -05:00
Manfred Karrer
ba376febac
Add TxType to bsqWalletService.commit call 2019-03-04 11:35:05 -05:00
Manfred Karrer
64f085ce48
Merge branch 'allow-spending-unconfirmed-bsq-utxs'
# Conflicts:
#	core/src/main/java/bisq/core/trade/protocol/tasks/taker/CreateTakerFeeTx.java
2019-03-04 11:20:55 -05:00
Manfred Karrer
f790bfce86
Merge branch 'add-live-trading' 2019-03-04 11:13:11 -05:00
Manfred Karrer
dcadbdfc3e
Merge branch 'master' into avoid-taker-fee-publishing-for-failed-trades
# Conflicts:
#	core/src/main/java/bisq/core/offer/OfferPayload.java
2019-03-04 11:12:04 -05:00
Manfred Karrer
804f8e9abf
Improve wording 2019-03-04 11:10:26 -05:00
Manfred Karrer
9e7a619ba4
Merge branch 'master' into add-live-trading 2019-03-04 11:09:24 -05:00
ArqTras
e4bd07959b
List Arqma (ARQ) 2019-03-04 15:20:14 +01:00
Manfred Karrer
4c4084cf6d
Increase offer TTL and decrease refresh interval
- We get about 300 refresh msg / min. That causes quite  a bit of load
for the network. I think it is safe to increase TTL from 7 to 9 minutes
and change REFRESH_INTERVAL from 5 to 6 min. and
REPUBLISH_INTERVAL from 30 to 40 min.
2019-03-04 01:45:40 -05:00
Manfred Karrer
c65decfeaf
Add prog args for connection parameters
- Add program args: msgThrottlePerSec, msgThrottlePer10Sec,
sendMsgThrottleTrigger and sendMsgThrottleSleep
- Add ConnectionConfig class with static injected field in Connection
- Cleanups
2019-03-04 00:57:29 -05:00
Manfred Karrer
ed6fa7b1a3
Increase TTL for offer from 7 to 8 min.
We got reports that offers got removed and re-added even if the maker
had good network connections. Seems the network did not propagate the
refresh msg in time or get too crowded. Increasing the TTl should help
to make those cases more rare. To decrease the refresh rate from 5 min
to 4 min. might be more risky as it would create much more traffic.
2019-03-03 22:57:33 -05:00
Manfred Karrer
0711ab936d
Reduce timeout to 90 sec
- We had it initially at 60 sec. and increased it as attempt to fight
those timeout errors, but it did not help. So letting the user wait
longer as needed does not make sense.
2019-03-03 20:46:10 -05:00
Manfred Karrer
997819eab4
Add line break 2019-03-03 20:01:10 -05:00
Manfred Karrer
44f57984f6
Merge branch 'master' into add-live-trading 2019-03-03 19:24:10 -05:00
Manfred Karrer
b9bfa83015
Merge branch 'master' into avoid-taker-fee-publishing-for-failed-trades 2019-03-03 18:47:23 -05:00
Manfred Karrer
c5a383d777
Fix balance for confiscated bonds 2019-03-03 18:41:57 -05:00
Manfred Karrer
e414e91c46
Refactor: Rename onParseTxsCompleteAfterBatchProcessing to
onParseBlockCompleteAfterBatchProcessing
2019-03-03 17:56:43 -05:00
Manfred Karrer
8d73308796
Refactor: Rename onParseTxsComplete to onParseBlockComplete 2019-03-03 17:56:05 -05:00
Manfred Karrer
a0dd0101a7
Fix balance update in case at vote result. Rename methods
- To ensure the balance is updated in case we have a comp. request we
need to ensure that the vote result is completed before our balance
update is called.

- Remove updateBsqWalletTransactions call at constructor as nothing is
ready anyway here

- Refactor: Rename addBsqStateListener to addDaoStateListener
and removeBsqStateListener to removeDaoStateListener
2019-03-03 17:55:08 -05:00
Manfred Karrer
568be3def8
Add missing check for isAvailableForSpending at unverifiedBalance 2019-03-03 17:14:47 -05:00
Manfred Karrer
1802508c7c
Fix BSQ balance display for unconfirmed change outputs
- Add verifiedBsqBalance and unconfirmedChangeBalance
- Remove totalBsqBalance
- Make text for different balances more explicit
2019-03-03 15:05:19 -05:00
Manfred Karrer
9475cf2897
Merge branch 'master' into allow-spending-unconfirmed-bsq-utxs 2019-03-03 12:12:22 -05:00
Manfred Karrer
992480d3a7
Refactoring: Renaming 2019-03-03 02:28:37 -05:00
Manfred Karrer
54e39c3067
Remove dev button, add "trade instant" checkbox 2019-03-03 02:09:52 -05:00
Manfred Karrer
11adc99f3c
Use super classes for cryptCurrencyAccount and payload 2019-03-03 01:31:26 -05:00
Manfred Karrer
6c11fc18c7
Add altcoin payment method for live trading
- Add LiveAsset account, payment method, AccountPayload
- Extract super classes for normal CryptoCurrenyAccount and payload and
LiveAssetAccount and payload
- Add isAsset method
- Add button for creating a live asset account

As it is a bit tricky to use the AccountForm for both methods and add a
checkbox there so defined which payment method to use I added a button
to add an AccountForm with the LiveAssets passed. This is just
temporary to be able to test a bit more and see if there are any
critical issues. We should unify that form but that might require a bit
of refactoring of the CryptoCurrencyForm.
2019-03-03 01:12:54 -05:00
Manfred Karrer
e62557c759
Merge branch 'master' into allow-spending-unconfirmed-bsq-utxs 2019-03-02 01:45:32 -05:00
Manfred Karrer
dd96a185ea
Delay broadcasting of taker fee tx
To avoid the issue with lost taker fees if the take-offer attempt fails,
we delay the publishing of the taker fee tx just before the deposit tx
gets published.
The taker fee tx must not be committed to the wallet to avoid that the
wallet would require a resync in case the tx is not published.
If the tx is not committed the addresses used there are not considered
as used and that would cause issues with the address entry context
assignment for the deposit tx. To avoid those issues we need to force
the creation of new addresses used for the multisig and payout address
entries. To be sure that happens before any of the following tasks make
use of those address entries we do that already in the createTakerFee
task.
For BSQ fee tx it behaves similar but needs separate testing.
2019-03-01 22:56:46 -05:00
Devin Bileck
5293b4a494
Update bond lockup prompt
- Changed display string from "lockup time" to "unlock time"
otherwise it may be confused with how long it takes to lock
up the bond.
- Included estimated time duration (e.g. days) for the unlock time.
2019-03-01 16:37:02 -08:00
Manfred Karrer
4332c16886
Cleanup 2019-03-01 18:21:03 -05:00
Manfred Karrer
03d0a22580
Allow spending of unconfirmed BSQ change outputs
When creating a BSQ transaction (actually at commit time as we can create a tx and then
cancel it in the confirmation popup) we store the change output (only that not the other
possible BSQ output) in a persisted list. The BsqCoinSelector will take that list to
allow spending those coins. We use the txType to find the index of the cahnge output.
We only have one change output in the transactions created in Bisq. Multiple change
outputs would be valid but our goal is only increased usability in the Bisq app and it is
not related to validation rules.

We update out list at each new block confirmation.

With that approach we avoid too much dependencies to the BitcoinJ side.

- Add UnconfirmedBsqChangeOutputListService and persisted UnconfirmedBsqChangeOutputList
for storing unconfirmed outputs
- Add lookup for unconfirmed BSQ change outputs at BsqCoinSelector and allow spending if
found
- Pass TxType for walletsManager.publishAndCommitBsqTx calls
- Add TxType to bsqWalletService.commitTx
- Refactor getPreparedSendTx methods for BSQ and BTC sending to one common method with a
coinselector parameter.
- Add getChangeAddress method to BsqWalletService to make change outputs more explicit
- Add unconfirmedChangeBalance to onUpdateBalances handlers
- Rename availableBalance to availableConfirmedBalance in onUpdateBalances
- Unify onUpdateBalances parameter names
2019-02-28 23:22:43 -05:00
Oscar Guindzberg
b55073cf1b Basic support for version 2 transactions. Cherry pick bitcoinj@850f219 2019-03-01 00:09:03 -03:00
Manfred Karrer
c565156b58
Change log level. Log notification sendMessage only if really sent. 2019-02-28 14:10:29 -05:00
Oscar Guindzberg
3476765a90 Use Transaction.getIncludedInBestChainAt() 2019-02-28 15:20:41 -03:00
Manfred Karrer
a9ee15d9f6
Revert 2473067b09
Seed nodes do not connect to correct network. The PR needs to be better
tested and fixed.
2019-02-27 14:00:05 -05:00
Manfred Karrer
740c112b48
Update seednode operator 2019-02-27 13:21:34 -05:00
Manfred Karrer
2473067b09
Merge pull request #2464 from freimair/seedNodeRepo_refactoring
Seed node repo refactoring
2019-02-27 13:18:06 -05:00
Florian Reimair
37115294d3
Remove testnet seed node repo 2019-02-26 10:38:09 +01:00
Florian Reimair
17d8d3fed6
Incorporate DAO_TESTNET 2019-02-25 15:58:27 +01:00
Florian Reimair
df540d7ce8
Honor manually provided seed nodes 2019-02-25 14:52:22 +01:00
Florian Reimair
282b0f2ef2
Refactor SeedNodeRepo stuff 2019-02-25 14:51:38 +01:00
Manfred Karrer
e52ac9dca3
Fix incorrect available balance for voting
- Subtract vote fee from available wallet balance
- Add log for errors
- Update view in error case
2019-02-24 14:23:19 -05:00
Manfred Karrer
e369c76d28
Merge pull request #2444 from devinbileck/github-redirects
Use URL redirects to GitHub content
2019-02-24 11:07:56 -05:00
Mr QWC
4500769f89 List Qwertycoin (QWC)
Official project URL: https://qwertycoin.org
Official block explorer URL: https://explorer.qwertycoin.org

Included is a pop up message to let QWC senders know what is required of them in the event a trade goes to arbitration.
2019-02-23 23:44:56 +01:00
Manfred Karrer
544f065b89
Fix wrong postfix for db files 2019-02-21 15:27:54 -05:00
Manfred Karrer
a8a1397728
Update strings 2019-02-21 15:08:05 -05:00
Manfred Karrer
cad16e0f92
Prevent connection to localhost bitcoin node if dao testnet is used (fix) 2019-02-21 13:24:09 -05:00
Manfred Karrer
0561c12a90
Prevent connection to localhost bitcoin node if dao testnet is used (fix) 2019-02-21 12:25:48 -05:00
Manfred Karrer
518fe724d9
Prevent connection to localhost bitcoin node if dao testnet is used 2019-02-21 12:00:35 -05:00
Christoph Atteneder
6315ca0056
Change from Testnet to DAO Testnet setting 2019-02-21 15:17:31 +01:00
Manfred Karrer
d47fec2620
Merge pull request #2447 from ManfredKarrer/dao-serverside-regtest
Dao serverside regtest
2019-02-21 07:32:40 -05:00
Manfred Karrer
0800301539
Use REGTEST as network for BTC_DAO_TESTNET
- As teh network is used for filtering asset types BSQ has 3 asset
types, one per network we need to use REGTEST as network. The methods
for checking which BaseCurrencyNetwork are using name() now instead of
network as we have 2 times REGTEST.

- Fix bug with not calling showFeeInfoAndPublishMyProposal for bonded
role proposals.
2019-02-20 21:49:05 -05:00
Manfred Karrer
a188aa6dfa
Use mainnet notwork id for test as testnet does not has any seed node defined 2019-02-20 20:49:02 -05:00
Manfred Karrer
8865ba6e9a
Merge pull request #2445 from devinbileck/bonded-role-unlock-time
Update bonded role unlock time
2019-02-20 20:07:00 -05:00
Devin Bileck
c5beda4d3d
Update display strings
Capitalized proper names (GitHub, YouTube, BTC) and initial character
for a few strings.
2019-02-20 16:45:56 -08:00
Devin Bileck
f8385a96d6
Update bonded role unlock time
Use the defined unlock time on mainnet, an arbitrarily low value on
regtest for dev testing, and a relatively short time on testnet for
testing purposes.
2019-02-20 16:17:15 -08:00
Devin Bileck
e8d4ed2670
Use URL redirects to GitHub content
URL redirects for downloads, source code, roles; all of which currently
go to GitHub.

See bisq-network/bisq#2429
2019-02-20 14:49:57 -08:00
Manfred Karrer
ece8d50ff1
Add num tx to log when new block is parsed 2019-02-20 14:00:49 -05:00
Manfred Karrer
9da5bd3300
Use 104.248.31.39 as regTestHost if DaoTestNet is selected 2019-02-20 13:49:03 -05:00
Manfred Karrer
dbff4e1379
Change testnet seeds to regtest seeds 2019-02-20 10:12:20 -05:00
Manfred Karrer
8fc3ab9745
Add BTC_DAO_TEST_NET_EXPLORER 2019-02-19 17:54:48 -05:00
Manfred Karrer
7dbc135b1f
Add DAO_TESTNET_GENESIS_TX_ID
- Set BTC_DAO_TESTNET as last enum to not break existing regtest port
convention which is derived from enum order
- Remove BaseCurrencyNetwork.isBitcoin as always true
-
2019-02-19 16:21:32 -05:00
Manfred Karrer
0acbff6e60
Add DAO_TESTNET baseCurrencyNetwork enum 2019-02-19 15:18:04 -05:00
Manfred Karrer
570d08d4b3
Change CHECK_MEMORY_PERIOD_SEC from 10 sec to 5 min. 2019-02-19 14:46:55 -05:00
Manfred Karrer
4d017334ca
Change log level to debug 2019-02-19 14:42:02 -05:00
Manfred Karrer
6c5d5adbc7
Use fjr5w4eckjghqtnu as regtest seed node 2019-02-19 14:23:13 -05:00
Manfred Karrer
b4b5d0bb12
Merge pull request #2436 from ManfredKarrer/update-checkpoint-files
Update BitcoinJ checkpoint files
2019-02-18 22:46:26 -05:00
Manfred Karrer
6febfb06f0
Merge pull request #2438 from oscarguindzberg/clear-store
Replace NonMMappedSPVBlockStore by ClearableSPVBlockStore
2019-02-18 22:31:47 -05:00
Manfred Karrer
6a53769bf9
Add LitecoinZ as newly added coin. 2019-02-18 22:25:43 -05:00
Oscar Guindzberg
9ae0adec6c Replace NonMMappedSPVBlockStore by ClearableSPVBlockStore 2019-02-18 23:07:53 -03:00
Manfred Karrer
a7437883c5
Update BitcoinJ checkpoint files 2019-02-18 13:46:10 -05:00
Manfred Karrer
dc8fa91367
Merge pull request #2434 from ManfredKarrer/remove-not-traded-assets
Remove not traded assets
2019-02-18 12:33:31 -05:00
Manfred Karrer
744ff486e6
Add TODO 2019-02-18 12:20:06 -05:00
Christoph Atteneder
8e4c2c6338
Update translations 2019-02-18 18:08:50 +01:00
Manfred Karrer
59920bb994
Remove not traded assets
- Remove Gridcoin, LitecoinZ and ZeroOneCoin
- Update getMainCryptoCurrencies and getRemovedCryptoCurrencies methods
- Update isWarmingUp method

Insufficiently traded assets:
Gridcoin (GRC): Trade amount: 0.0055 BTC, number of trades: 1

Not traded assets:
01coin (ZOC)
LitecoinZ (LTZ)
2019-02-18 12:06:21 -05:00
Manfred Karrer
5d157832be
Merge pull request #2423 from ManfredKarrer/add-beam-popup
Add info popup for BEAM accounts. Improve GRIN info popup text.
2019-02-16 19:46:23 -05:00
Manfred Karrer
6a41517ad3
Improve text 2019-02-16 19:37:13 -05:00
Manfred Karrer
edb050a087
Merge pull request #2428 from ManfredKarrer/add-more-info-at-dispute-system-msg
Add more instructions at dispute system message
2019-02-16 19:32:02 -05:00
Manfred Karrer
a54594725a
Improve text 2019-02-16 19:04:14 -05:00
Manfred Karrer
94e702f165
Improve text. Use link to docs 2019-02-16 19:02:48 -05:00
Manfred Karrer
2daa4aa41b
Add more instructions at dispute system message
- Use redirect link for arbitr. doc
2019-02-15 19:03:53 -05:00
Manfred Karrer
6589d6ed8e
Add link for requestNowButton. Use redirect URL 2019-02-15 18:00:09 -05:00
Manfred Karrer
c619860d4d
Add info popup for BEAM accounts. Improve GRIN info popup text. 2019-02-15 13:20:01 -05:00
Christoph Atteneder
e5dd9a2187
Merge pull request #2413 from ManfredKarrer/increase-trade-limits
Increase trade limit. Make trade limit a DAO parameter
2019-02-15 11:15:02 +01:00
Manfred Karrer
b50f660349
Use Utilities.isWindows() instead of System.getProperty("os.name") 2019-02-14 17:02:29 -05:00
Manfred Karrer
93558ef2a2
Merge pull request #2399 from devinbileck/tor-setup-failure
Improve handling when unable to connect to tor
2019-02-14 16:45:26 -05:00
Manfred Karrer
076dea2284
Merge pull request #2403 from oscarguindzberg/remove-mmap
Use NonMMappedSPVBlockStore on windows.
2019-02-14 16:24:04 -05:00
Manfred Karrer
892f5493ea
Merge pull request #2421 from ripcurlx/adapt-dao-teaser-page
Adapt DAO news view for Mainnet
2019-02-14 15:44:18 -05:00
Manfred Karrer
2b954c35e7
Fix incorrect maxTradeLimit assignment from Offer
- Make all PaymentMethod constructors private
- Use PaymentMethod.getPaymentMethodById in Offer for getting the
PaymentMethod. This change a bit the context as now we always create the
PaymentMethod from the actual code base in contrast to the data which
have been used when creating the offer. As our fields as final and must
not change in software updates it should have no issues but we have to
keep that in mind to not alter the default values.
- Added a runtimeException in case the maxTradeLimit does not match one
of our default values.
- Use PaymentMethod.getDummyPaymentMethod(GUIUtil.SHOW_ALL_FLAG)
instead of new PaymentMethod(GUIUtil.SHOW_ALL_FLAG))
2019-02-14 15:16:33 -05:00
Christoph Atteneder
0220b33185
Remove DAO initialization info and change the Bitcoin network initialization information as well 2019-02-14 15:11:26 +01:00
Christoph Atteneder
12ea7186d2
Adapt DAO news view to match design 2019-02-14 15:03:33 +01:00
Manfred Karrer
11bc11fd24
Remove code for Venmo, Cashapp and OKPay
- We had an automate remove accounts for those payment methods for long
time, so we can assume that no traders have any of those accounts still
in their persisted user objects and it is safe to completely remove them.
Only part where we cannot remove it is the PB definitions (actually I
think we could remove those as well, but not 100% sure and it seems to
be more safe to mark those as deprecated and leave the entries).
2019-02-13 21:34:51 -05:00
Manfred Karrer
3fc9f45233
Refactor PaymentMethod
- Assign paymentMethods in static final field
- Add static fields for default trade limits
- Remove deprecated payment methods
- Remove onAllServicesInitialized and use static initializer instead
- Re-purpose maxTradeLimit for indicating risk factor
- Calculate real trade limit in the getMaxTradeLimitAsCoin method
- Rename getActivePaymentMethods to getPaymentMethods
2019-02-13 21:07:32 -05:00
Christoph Atteneder
3890c9cb51
Move teaser page into separate view 2019-02-13 16:09:51 +01:00
Manfred Karrer
0699c58c81
Increase trade limit. Make trade limit a DAO parameter
- Set max trade limit to 2 BTC (for altcoins)
- Add MAX_TRADE_LIMIT to Param
- Round first month trade limit to ensure we stick with precision 4 for
the btc amount
- Use risk factors to derive trade limits for different payment method
risk categories
2019-02-12 12:57:44 -05:00
Manfred Karrer
1a3b8b51a1
Remove BisqEnvironment.isBaseCurrencySupportingBsq()
We don't support any other base currencies anymore, so that method
resulted always to true and could be removed.
2019-02-12 11:22:35 -05:00
Manfred Karrer
2ef69c1ce8
Replace BisqEnvironment.isDAOActivated with DevEnv.isDaoActivated 2019-02-12 11:16:27 -05:00
Manfred Karrer
96218a684f
Cleanup 2019-02-12 10:18:10 -05:00
Manfred Karrer
90c99f9eda
Merge pull request #2411 from ripcurlx/hide-dao-initialization-on-mainnet
Add DAO synchronization handling for Mainnet
2019-02-12 09:55:44 -05:00
Christoph Atteneder
8b2af872e4
Only check if DAO is activated as there is only one base currency (BTC) available anyways 2019-02-12 15:23:05 +01:00
Christoph Atteneder
277084ce39
Update view on activation with block at current chain height 2019-02-12 15:02:11 +01:00
Christoph Atteneder
14d53303e6
Merge pull request #2388 from ripcurlx/add-indication-for-unparsed-bsq-transactions
Add indication that BSQ transactions are not up to date
2019-02-11 15:33:18 +01:00
Christoph Atteneder
f7f4f072c9
Merge pull request #2379 from ripcurlx/improve-fund-your-offer-popup
Show BSQ trading fee more explicitly when funding your offer
2019-02-11 15:32:06 +01:00
Oscar Guindzberg
9f9de57251 Use NonMMappedSPVBlockStore on windows.
Fixes https://github.com/bisq-network/bisq/issues/2402
2019-02-11 11:27:49 -03:00
Oscar Guindzberg
962ef6e388 WalletConfig: Use provideBlockStore() instead of SPVBlockStore constructor 2019-02-11 10:50:20 -03:00
Christoph Atteneder
6bea5daea0
Add indication that BSQ transactions are not up to date 2019-02-11 10:58:14 +01:00
Christoph Atteneder
dfeb6b0db9
Wait until proposal is published before resetting the form 2019-02-11 09:46:37 +01:00
Christoph Atteneder
a47f1def99
Merge pull request #2386 from ripcurlx/add-warning-for-bonded-role-if-insufficient-funds
Show warning for bonded role if user has insufficient funds
2019-02-11 08:50:28 +01:00
Manfred Karrer
8cdc759903
Merge pull request #2394 from ripcurlx/show-new-badge-on-dao-menu-item
Show DAO news badge
2019-02-11 02:14:33 +01:00
Manfred Karrer
f87522f27f
Merge pull request #2377 from ManfredKarrer/dao-fix-remove-proposal-handling
Fix missing removal of old or invalid proposals
2019-02-11 01:40:58 +01:00
Manfred Karrer
12d2879f7f
Merge pull request #2371 from ManfredKarrer/dao-fix-majorityvote-issue
Dao fix majorityvote issue
2019-02-09 14:56:48 +01:00
Manfred Karrer
01bd0983d6
Use property file for display string 2019-02-09 08:38:16 -05:00
Manfred Karrer
e8844ee50c
Rename DecryptedBallotsWithMerits to txOutputToDecryptedBallotsWithMerits 2019-02-09 08:34:20 -05:00
Devin Bileck
3f6d81c20b
Improve handling when unable to connect to tor
Issue: If an IOException is raised when attempting to create
tor and the hidden service, the application will just quit without
any indication to the user. One particular scenario where this occurs
is mentioned in https://github.com/bisq-network/bisq/issues/2398.

Cause: There is an explicit statement to exit the application when an
IOException is raised.

Fix: Rather than just exit the application, show an error message
and inform the user what went wrong.
2019-02-08 13:57:25 -08:00
sqrrm
9f005f44d6
Refactor voteresult to make it easier to understand 2019-02-08 15:59:02 +01:00
Christoph Atteneder
2cdf6b7175
Show DAO news badge in version 0.9.4+ until section visited 2019-02-08 15:52:06 +01:00
Christoph Atteneder
fd3e947d00
Show warning for bonded role if user has insufficient funds 2019-02-07 11:49:49 +01:00
LitecoinZ
be257da259
List LitecoinZ (LTZ) 2019-02-07 11:47:49 +01:00
Christoph Atteneder
9703bf5af1
Merge pull request #2319 from aphivantrakul/list-cash2-asset
List Cash2 (CASH2)
2019-02-07 09:23:28 +01:00
Christoph Atteneder
0a0be73675
Merge pull request #2380 from devinbileck/add-btc-node
Add btc node
2019-02-07 09:16:13 +01:00
Devin Bileck
7166459cf6
Add btc node
onion address: lva54pnbq2nsmjyr.onion
ipv4: 165.227.34.198
dns: btc1.dnsalias.net
2019-02-06 15:27:17 -08:00
Christoph Atteneder
f43032dab3
Show BSQ trading fee next to BTC total amount that needs to be used to fund the trade 2019-02-06 17:28:59 +01:00
Manfred Karrer
a110d7d82d
Merge branch 'master' into dao-fix-majorityvote-issue
# Conflicts:
#	desktop/src/main/java/bisq/desktop/main/dao/governance/make/MakeProposalView.java
2019-02-06 11:37:00 +01:00
Christoph Atteneder
0b81095ccb
Merge pull request #2376 from ManfredKarrer/refactor-clock-handlers
Refactor: Add handler, make onMissedSecondTick default
2019-02-06 09:20:49 +01:00
Manfred Karrer
31a54b29bd
Cleanup DaoStateListener handlers 2019-02-06 01:11:31 +01:00
Manfred Karrer
d10d91bb84
Make methods in DaoStateListener default
To avoid empty handlers I have set all methods to default so the client
code implements only the used one.
Move handler code from onNewBlockHeight to
onParseTxsCompleteAfterBatchProcessing to avoid too much UI updates
while parsing.
2019-02-06 00:43:02 +01:00
Manfred Karrer
1a71f4928f
Filter vote result items according to majority hash 2019-02-06 00:39:27 +01:00
Manfred Karrer
4868b0e5df
Fix onParseBlockChainComplete handler
We had 2 times the onParseTxsComplete called in the version before
2019-02-06 00:26:11 +01:00
Manfred Karrer
df0a8b7571
Remove duplicate log 2019-02-05 22:51:32 +01:00
Manfred Karrer
fc362c71be
Fix missing removal of old or invalid proposals
- If a proposal had a tx which is not in our BSQ state it was not removed
- If a tx was outdated (> 60 days old) it was only removed if we are
in proposal phase. We added check for past cycle to cover those as well.
2019-02-05 21:16:16 +01:00
Manfred Karrer
c53612fb78
Improve logging 2019-02-05 20:44:27 +01:00
Manfred Karrer
dcf40bcfb5
Refactor: Add handler, make onMissedSecondTick default 2019-02-05 20:43:46 +01:00
Manfred Karrer
69b8dacae4
Move DaoUtil to bisq.core.dao.presentation 2019-02-05 16:59:59 +01:00
Christoph Atteneder
0aa931dce6
Display time of next make proposal phase 2019-02-05 15:52:42 +01:00
Christoph Atteneder
20a1cf567f
Improve not in make proposal phase state 2019-02-05 15:21:23 +01:00
Manfred Karrer
df685ceb55
Remove merit from majority hash calculation (use only stake) 2019-02-05 15:00:19 +01:00
Manfred Karrer
e2fac0c759
Only use blind vote payloads which are in majority list 2019-02-05 14:25:48 +01:00
Manfred Karrer
076e3faf95
Refactor: Move code for adding decryptedBallotsWithMeritsSet to daoStateService 2019-02-05 13:41:15 +01:00
Manfred Karrer
5702ab03cc
Fix handling of majority vote
We need to add any valid vote reveal tx / blind vote tx pair for the
majority hash calculation even if the blind vote payload is missing as
that could be relevant for the majority hash calculation. We add an
empty ballotList and meritList in such cases.
2019-02-05 13:36:24 +01:00
Oscar Guindzberg
52e36187d1 Remove libdohj dependency 2019-02-05 09:33:58 -03:00
Manfred Karrer
68a6de2576
Merge pull request #2346 from devinbileck/tor-on-regtest
Allow tor to be used with regtest
2019-02-04 12:24:58 +01:00
Devin Bileck
d233aef5b1
Check useTorFlagFromOptions rather than bisqEnvironment.getProperty 2019-02-03 23:17:02 -08:00
Manfred Karrer
1b21030b11
Merge pull request #2365 from ManfredKarrer/dao-handle-burn-cases
Dao handle burn cases
2019-02-04 00:54:38 +01:00
Manfred Karrer
3f4e641f19
Merge pull request #2355 from ManfredKarrer/dao-add-filter-flag-for-disable-dao
Dao add filter flag for disable dao
2019-02-04 00:17:08 +01:00
Manfred Karrer
2ad6298c0f
Add more TODO and comments 2019-02-04 00:16:38 +01:00
Manfred Karrer
90f656c257
Revert setting to UNDEFINED_TX_TYPE 2019-02-04 00:08:42 +01:00
Manfred Karrer
0abe00ed1d
Add isActive method to bondState 2019-02-04 00:03:37 +01:00
Manfred Karrer
ac670e1afe
Merge pull request #2357 from ManfredKarrer/only-allow-grinbox-addresses
Remove support for IP:port Grin address format.
2019-02-03 23:42:14 +01:00
Manfred Karrer
c4d561b7aa
Merge pull request #2242 from sqrrm/dao-avoid-bsq-burn
Dao avoid bsq burn
2019-02-03 22:59:30 +01:00
Manfred Karrer
957da9f8d8
Add log 2019-02-03 22:38:34 +01:00
Manfred Karrer
cc7d7086af
Call onParseTxsComplete always in onParseBlockComplete 2019-02-03 22:38:26 +01:00
Manfred Karrer
f6e8473324
Improve logs 2019-02-03 21:22:35 +01:00
Manfred Karrer
69a9f6f311
Merge branch 'master' into dao-add-params 2019-02-03 21:13:48 +01:00
Manfred Karrer
002f225bdd
Merge branch 'master' into dao-add-filter-flag-for-disable-dao 2019-02-03 21:13:06 +01:00
Manfred Karrer
fcc0dcf91f
Improve logs 2019-02-03 21:05:00 +01:00
Manfred Karrer
33eb90849d
Merge branch 'master' into dao-fix-vote-result-with-permutated-blindvotelist 2019-02-03 19:02:46 +01:00
Manfred Karrer
2615464511
Merge pull request #2360 from ManfredKarrer/dao-fix-issues-with-majority-hash
Dao fix issues with majority hash
2019-02-03 19:01:27 +01:00
Manfred Karrer
0232fadad5
Rename heightOfFirstBlock to heightOfFirstBlockInCycle 2019-02-03 18:49:57 +01:00
sqrrm
5a7d177e7c
Update core/src/main/java/bisq/core/dao/governance/votereveal/VoteRevealService.java
Co-Authored-By: ManfredKarrer <mk@nucleo.io>
2019-02-03 18:48:08 +01:00
sqrrm
964407f8e0
Update core/src/main/java/bisq/core/dao/governance/votereveal/VoteRevealService.java
Co-Authored-By: ManfredKarrer <mk@nucleo.io>
2019-02-03 18:47:46 +01:00
sqrrm
25948c966e
Update core/src/main/java/bisq/core/dao/governance/votereveal/VoteRevealService.java
Co-Authored-By: ManfredKarrer <mk@nucleo.io>
2019-02-03 18:47:36 +01:00
sqrrm
2fc010098a
Update core/src/main/java/bisq/core/dao/node/BsqNode.java
Co-Authored-By: ManfredKarrer <mk@nucleo.io>
2019-02-03 18:47:11 +01:00
Manfred Karrer
90d0f4a9af
Add key event handler for republishing all governance data 2019-02-03 18:45:57 +01:00
Manfred Karrer
160088f248
Fix republish checks
Remove parsingComplete check
2019-02-03 18:21:31 +01:00
Manfred Karrer
71502d9594
Call missingDataRequestService.sendRepublishRequest() if data missing 2019-02-03 18:20:40 +01:00
Manfred Karrer
9c37457630
Call maybeCalculateVoteResult at onParseBlockChainComplete 2019-02-03 17:36:56 +01:00
Manfred Karrer
22b33b6485
Add throws ConsensusException 2019-02-03 16:55:46 +01:00
Manfred Karrer
ae5b96cca8
Merge branch 'dao-permute-blindvotelist-if-not-majority-hash' into dao-fix-vote-result-with-permutated-blindvotelist
# Conflicts:
#	core/src/main/java/bisq/core/dao/governance/votereveal/VoteRevealService.java
2019-02-03 16:54:14 +01:00
Manfred Karrer
c5381a8b46
Merge branch 'dao-fix-issues-with-majority-hash' into dao-fix-vote-result-with-permutated-blindvotelist 2019-02-03 16:52:28 +01:00
Manfred Karrer
39d94eec99
Show myVote as invalid if not included in result list 2019-02-03 16:38:51 +01:00
sqrrm
686bd2f90e
Merge branch 'master' into dao-avoid-bsq-burn 2019-02-03 15:59:32 +01:00
Manfred Karrer
3005df42bf
Fixes https://github.com/bisq-network/bisq/issues/2358 2019-02-03 14:51:07 +01:00
Manfred Karrer
71723b5e4b
Add comment 2019-02-03 14:48:52 +01:00
Manfred Karrer
1a7200859d
Fix testclass with missing param 2019-02-03 11:17:24 +01:00
Manfred Karrer
c11ec1399a
Remove support for IP:port Grin address format.
Add popup with info for proof tool
2019-02-03 01:46:45 +01:00
Manfred Karrer
fd97fb535f
Add new btc node from KanoczTomas
onion address: mbm6ffx6j5ygi2ck.onion
ipv4 address: 193.58.196.212
dns: btc.ispol.sk
2019-02-03 01:01:14 +01:00
Manfred Karrer
1df8d77b9a
Add DaoKillSwitch to disable all BSQ/DAO transactions 2019-02-03 00:52:25 +01:00
Manfred Karrer
0c53699bc9
Add checkbox for disabling DAO 2019-02-03 00:20:48 +01:00
Manfred Karrer
b249289213
Add PermutationUtil
In case that the users blind vote list does not match the hash of the
majority we want to find if any variation of our list leads to a match
so we can still calculate the vote result.
2019-02-02 23:28:26 +01:00
Manfred Karrer
9be41fcb7f
Add logs for blindVoteList used for hash 2019-02-02 12:12:53 +01:00
Manfred Karrer
6459e3c86c
Return true if we find a permutated list matching the majority hash 2019-02-02 12:12:08 +01:00
Manfred Karrer
af0c5fe4ab
Remove exception which is never thrown 2019-02-02 12:11:31 +01:00
Devin Bileck
ba466d40ee
Update logging indicating number of btc nodes
The logged message that indicates the number of btc nodes to connect to
was incorrect when only a single node is used in regtest mode.
2019-01-30 15:24:00 -08:00
Devin Bileck
53cf14791f
Allow tor to be used on regtest
This allows for a tor .onion address to be specified as the
bitcoinRegtestHost parameter and, as long as the --useTorForBtc=true
parameter is included, it will use tor when on regtest.
2019-01-30 15:14:58 -08:00
Christoph Atteneder
bf94810126
Merge pull request #2342 from ManfredKarrer/dao-show-menu-item
Dao show menu item
2019-01-30 13:10:16 +01:00
Christoph Atteneder
d1246ca192
Merge pull request #2328 from ManfredKarrer/dao-improve-exception-handling
Dao improve exception handling
2019-01-30 13:03:57 +01:00
Christoph Atteneder
86c9845523
Merge pull request #2333 from ManfredKarrer/dao-fix-phase-display
Fix incorrect phase display
2019-01-30 13:02:36 +01:00
Christoph Atteneder
15201cb5da
Merge pull request #2335 from ManfredKarrer/dao-vaious-bug-fixes
Dao various bug fixes
2019-01-30 13:02:02 +01:00
Manfred Karrer
201f9a0fbc
Delete tor files at startup
We get sometimes Tor startup problems which is related to some tor
files in the tor directory. It happens more often if the application
got killed (not graceful shutdown).
Creating all tor files newly takes about 3-4 sec. longer and it does
not benefit from cache files.
TODO: We should fix those startup problems in the netlayer library,
once fixed there we can remove that call at the
Bisq startup again.
2019-01-30 11:38:43 +01:00
Manfred Karrer
e8d0ed1504
Add more DAO info text and buttons. Remove other tabs 2019-01-30 11:08:34 +01:00
Manfred Karrer
f6b85aae04
Add disableDao flag to filter 2019-01-30 10:01:36 +01:00
Manfred Karrer
6dece782de
Remove line break 2019-01-30 09:02:48 +01:00
Manfred Karrer
7dc5404b84
Enable DAO menu, show dao info text and button 2019-01-30 08:54:54 +01:00
Manfred Karrer
a10ce23145
Add fallback to support old not updated clients
If a updated client makes a param change request old client do not
recognize that enum. To avoid exceptions ro null pointers we fall back
to the UNDEFINED enum entry if available. As param value we show an empty
string.
Beside that issue no problems have been found so far with adding a new
param entry.
2019-01-30 00:05:07 +01:00