Commit Graph

8698 Commits

Author SHA1 Message Date
Manfred Karrer
a9a43159f9
Add warning for money order accounts.
See discussion at: https://github.com/bisq-network/proposals/issues/75
2019-03-23 16:09:11 -05:00
Manfred Karrer
47fb177c07
Merge pull request #2556 from ManfredKarrer/misc-dao-improvements
Improve data structure, validation and performance
2019-03-22 23:46:17 -05:00
Manfred Karrer
eb8feece58
Add missing @EqualsAndHashCode(exclude = {"date"})
Was unintendely removed in latest refactorings
2019-03-22 20:44:37 -05:00
Manfred Karrer
43155b8926
Fix % display 2019-03-22 20:31:16 -05:00
Manfred Karrer
133db948c1
Merge pull request #2569 from devinbileck/suppress-popup-at-shutdown-when-open-offers-are-disabled
Suppress popup at shutdown when open offers are disabled
2019-03-22 16:02:57 -05:00
Devin Bileck
032892c8fd
Suppress popup at shutdown when open offers are disabled
Issue: When shutting down the application with disabled open offers, the
confirmation popup was still being shown informing the user there are
open offers.

Fix: On shutdown, check all open offers and only show the popup if any
of them are enabled.

Fixes #2115
2019-03-22 12:50:20 -07:00
Manfred Karrer
26fd61defb
Fix tests 2019-03-22 14:31:48 -05:00
Manfred Karrer
954c5afc7b
Use translation strings and show min/max values at change param validation 2019-03-22 14:14:24 -05:00
Manfred Karrer
68894ea2ce
Update db files 2019-03-22 12:25:45 -05:00
Manfred Karrer
f36678e90b
Add phaseChangeListener only after batch processing 2019-03-22 12:25:28 -05:00
Manfred Karrer
b20cb39e5a
Update db files 2019-03-22 12:19:17 -05:00
Manfred Karrer
a9ef339762
Merge branch 'master' into misc-dao-improvements 2019-03-22 12:00:51 -05:00
Manfred Karrer
7b6142920e
Fix string 2019-03-22 00:46:31 -05:00
Manfred Karrer
2ad86abe9f
Apply code inspection, cleanup 2019-03-22 00:44:58 -05:00
Manfred Karrer
61a3be354e
Remove nonBsqTxOutputMap from daoState
We can evaluate the nonBsqTxOutputs without storing it.
Storing them in the map would have required to remove them as well
once withdrawn from the wallet.
2019-03-21 23:48:19 -05:00
Manfred Karrer
49a0076139
Don't support spending of pending BTC utxos in the BSQ wallet. 2019-03-21 21:11:18 -05:00
Manfred Karrer
92fdca2abd
Cleanup TODOs 2019-03-21 20:53:08 -05:00
Manfred Karrer
7e61afcb8e
Add BONDED_ROLE_FACTOR to param to react on BSQ price changes
To avoid the need to change the required bond in the BondedRoleType
if the BSQ price changes we use the BONDED_ROLE_FACTOR param where the
factor can be changed. In the BondedRoleType we use the requiredBondUnit
which will be multiplied with the BONDED_ROLE_FACTOR value to get the
required bond amount.
2019-03-21 19:46:15 -05:00
Manfred Karrer
46f5b155dd
Update json export for vote results
Try to reflect domain structure and field names.
2019-03-21 18:46:27 -05:00
Manfred Karrer
c9ff5f7eba
Misc cleanups and refactorings 2019-03-21 18:45:53 -05:00
Manfred Karrer
6d5b404876
Remove SHA3-256 hash as it turned out it is slower as SHA256
In some tests it seemed that SHA3-256 is 30% fast than SHA256 but later
with the data we used in dao testnet it was actually slower.
To avoid confusion which hash function to use and to avoid mixing them
without strong reason I prefer to remove it again.
2019-03-21 18:44:24 -05:00
Manfred Karrer
7651a946e4
Support exportToJson also for lite node 2019-03-21 18:42:34 -05:00
Manfred Karrer
81f4dd65b7
Add UNDEFINED entries 2019-03-21 18:41:47 -05:00
Manfred Karrer
0b1b89e617
Merge pull request #2567 from devinbileck/fix-btc-status-incorrectly-hidden-on-splash-screen
Fix BTC status incorrectly hidden on splash screen
2019-03-21 13:13:01 -05:00
Devin Bileck
c842575eba
Fix BTC status incorrectly hidden on splash screen
Issue: When launching a new Bisq instance (i.e. new data directory) and
remaining on the user agreement screen for >90 seconds while reading it,
once you accept the agreement the BTC status was not being shown
on the splash screen.

Cause: showTorNetworkSettingsTimer gets triggered after 90 seconds
and since Tor is not started until after accepting the user agreement,
it was incorrectly assuming that Tor is not working and as a result
hiding the BTC status.

Fix: Don't hide the BTC status in showTorNetworkSettingsTimer. If there
is an issue with Tor, splashP2PNetworkErrorMsgListener handles
hiding the BTC status.
2019-03-21 10:44:20 -07:00
Manfred Karrer
32e27aad9d
Merge pull request #2565 from devinbileck/fix-typos
Fix typos/grammar in account.seed.restore.info
2019-03-21 11:59:15 -05:00
Devin Bileck
9d77031c43
Fix typos/grammar in account.seed.restore.info 2019-03-21 00:05:52 -07:00
Manfred Karrer
e371fd44d2
Use ParamValidationException instead of AddressFormatException 2019-03-21 00:37:06 -05:00
Manfred Karrer
28c93672ef
Fix logging 2019-03-21 00:32:40 -05:00
Manfred Karrer
735f619fee
Stream block batch processing on render frames
To avoid that the UI gets frozen at batch processing of blocks we
delay each parsing to the next render frame. The total parsing time is
just about 5% slower that way but the UI can render updates.
We also changed the hash for the daoState as the hashing of the full
state becomes quite heavy. The size of the blocks is about 1,4 MB for
7000 blocks (dao testnet). As on a new block only the last block in the
chain got added and as we use the previous hash in the hash chain we
do not need to hash the full blocks list but only the last block.
By that we decrease batch processing time from 30 sec to 7 sec. and data
size of the daoState from 1,4 MB to 200 kb.
Also added progress display of missing blocks in the Tx UI.
2019-03-21 00:27:12 -05:00
Manfred Karrer
f780cf5a15
Add SHA3-256 hash function
SHA3-256 is about 30% faster than SHA256
2019-03-20 21:28:25 -05:00
Manfred Karrer
c732ce8d18
Rename db file to enforce usage of new file with new data structure 2019-03-20 13:07:58 -05:00
Manfred Karrer
2a23896d2b
Change log levels, improve logging 2019-03-20 13:07:19 -05:00
Manfred Karrer
eb2975aefb
Dont' call updateBsqBalance while batch processing
We got a concurrent modification error when BTC blockchain sync was
running while DAO state was updated.
2019-03-20 13:06:22 -05:00
Manfred Karrer
fb3ca06600
Add ConsensusCritical to proposal validators
Changing validation rules can potentially break consensus (e.g. a past
proposal has been accepted according to old rules, and might become
invalid by new rules. The result of the proposal would become
invalidated  then.
2019-03-19 22:39:32 -05:00
Manfred Karrer
13ca802dd1
Add extraDataMap to BlindVote and Proposal
In case we need to add additional data in future we are can use that map
without breaking consensus or breaking the hash chain.
2019-03-19 22:20:13 -05:00
Manfred Karrer
3aa50a3be5
Store requiredBond and unlockTime in RoleProposal 2019-03-19 21:22:28 -05:00
Manfred Karrer
ac3374cc47
Remove requiredQuorum and requiredThreshold from EvaluatedProposal
We would break the hash chain if we would change the quorum or
threshold values in the param enum.
2019-03-19 20:39:47 -05:00
Manfred Karrer
7eb414acd1
Change bond lock time from 60 days to 75 days 2019-03-19 20:36:28 -05:00
Manfred Karrer
a47ba424f5
Fix comments 2019-03-19 19:09:40 -05:00
Manfred Karrer
729d59b113
Add 3 new roles, adjust bond amount 2019-03-19 18:58:30 -05:00
Manfred Karrer
4157ce1ea9
Increase bond for youtube operator 2019-03-19 18:48:54 -05:00
Manfred Karrer
aa8dc297cb
Change min/max factor for phase durations from 3 to 2 2019-03-19 18:48:00 -05:00
Manfred Karrer
bf474a3c25
Change blind vote phase and vote reveal durations
Blind vote phase changed from 4 days to 3 days and vote reveal from
2 days to 3 days.
2019-03-19 18:45:53 -05:00
Manfred Karrer
e673d6cd15
Merge branch 'master' into misc-dao-improvements 2019-03-19 18:40:40 -05:00
Manfred Karrer
1c5d1e0240
Add version to dispute opening msg 2019-03-19 17:27:50 -05:00
Manfred Karrer
ce13bae044
Use same detail info for peerOpenedTicket string and peerOpenedDispute 2019-03-19 17:11:07 -05:00
Manfred Karrer
28970d1ef3
Merge pull request #2564 from oscarguindzberg/bitcoinjjdk10
Upgrade bitcoinj version to the one built with jdk 10
2019-03-19 16:04:19 -05:00
Oscar Guindzberg
1746b143be Upgrade bitcoinj version to the one built with jdk 10 2019-03-19 17:16:49 -03:00
Manfred Karrer
02e9b55a4c
Merge pull request #2563 from oscarguindzberg/move-clear-store-bitcoinj
Move clear blockstore feature to bitcoinj
2019-03-19 14:48:36 -05:00