Commit graph

3635 commits

Author SHA1 Message Date
sqrrm
3d5ff1c674
Update core/src/main/java/bisq/core/dao/governance/votereveal/VoteRevealService.java
Co-Authored-By: ManfredKarrer <mk@nucleo.io>
2019-03-26 18:56:20 -05:00
Manfred Karrer
ff868311bb
Merge branch 'master' into add-check-for-bsq-balance
# Conflicts:
#	desktop/src/main/java/bisq/desktop/main/dao/wallet/dashboard/BsqDashboardView.java
2019-03-26 00:40:27 -05:00
Manfred Karrer
ce1da644c2
Add IRREGULAR txType for txs which are not rule conform but not burnt
We don't want to burn BSQ in cases like that the tx was published too
late, which is a valid case if the tx does not make it in the next block.
We set such txs as IRREGULAR and allow spending of the BSQ, but there
function in the governance is invalidated.

We also add a check if the sum of all UTXO is the same as the sum of the
genesis + sum of issuance txs - burned fees.
2019-03-26 00:37:55 -05:00
Manfred Karrer
c20964f47a
Don't create vote reveal tx in last block of phase 2019-03-26 00:33:57 -05:00
Manfred Karrer
15bf8ff08b
Merge pull request #2584 from ManfredKarrer/add-issuance-limit
Add ISSUANCE_LIMIT param and check for max issuance per cycle
2019-03-25 18:34:22 -05:00
Manfred Karrer
2a46133292
Merge pull request #2566 from ripcurlx/ui-dao-improvements
DAO UI improvements
2019-03-25 18:34:02 -05:00
Christoph Atteneder
f6f2a663e8
Improve layout and fix issue with phase breaks 2019-03-25 20:47:28 +01:00
Manfred Karrer
f75ddf9346
Add ISSUANCE_LIMIT param and check for max issuance per cycle
We limit the possible max. issuance (including reimbursements) to the
valued defined in the ISSUANCE_LIMIT param.
In case we exceed that limit the whole cycle becomes invalid.

The main reason for that feature is limitation of max.
damage in case that an attacker manages to create unjustified issuance.

For valid cases we consider such a case as social consensus problem as
the majority of voters should be aware of that limit before they
accept such a high issuance. If known in advance that an extraordinary
high issuance is expected the DAO parameter can be changed.
2019-03-25 13:36:34 -05:00
Christoph Atteneder
ab4d203ece
Merge pull request #2575 from ManfredKarrer/higher-max-buyer-security-deposit
Set max buyer's security deposit to 20% instead of 10%
2019-03-25 10:24:48 +01:00
Christoph Atteneder
f65b340d3d
Merge pull request #2576 from ManfredKarrer/mk-fix-get-all-bonds
Fix get all bonds not returning not active bonds
2019-03-25 10:24:33 +01:00
Christoph Atteneder
3491c40e13
Merge pull request #2579 from devinbileck/update-change-param-validator-error-messages
Update change param validator error messages
2019-03-25 10:24:01 +01:00
Christoph Atteneder
100d838908
Set max buyer's security deposit to 20% instead of 10%
A Bisq trader suggested that change to cover risks with volatility
for seller.
2019-03-25 10:17:08 +01:00
Manfred Karrer
a9aaef7e9b
Complete pull request
We only want to show active bonds in the list for confiscation.
The Inactive bond label is not necessary in the vote result as a
confiscated bond is inactive anyway. Intention was probably to show it
as inactive in the proposal display but they will be filtered out
anyway there.
2019-03-25 10:05:19 +01:00
Ben Kaufman
f1077b82b3
Disallow proposing to confiscate inactive bonds 2019-03-25 10:05:19 +01:00
Ben Kaufman
5c066a6942
Fix get all bonds not returning not active bonds
Fix #2522
2019-03-25 10:05:18 +01:00
Christoph Atteneder
942d8366b2
Add informational popup when voting for the first time 2019-03-25 09:51:42 +01:00
Christoph Atteneder
e4ecb869ad
Use stake to reference voting weight 2019-03-25 09:51:42 +01:00
Christoph Atteneder
4ba8342f20
Move display of selected proposal into popup instead of showing it inline 2019-03-25 09:51:42 +01:00
Devin Bileck
85fc633430
Fix incorrect value stated in error message and use inputToBeAtLeast 2019-03-24 23:02:56 -07:00
Devin Bileck
a902a7b627
Fix incorrect display string name inputTooToBeAtLeast 2019-03-24 22:56:18 -07:00
Manfred Karrer
497e202420
Merge pull request #2577 from ManfredKarrer/mk-lock-bond-fees
Added mining fee to un/lock bond popup
2019-03-24 19:12:35 -05:00
Manfred Karrer
5d4235ff87
Update BTC_DONATION_ADDRESS_OWNER bond 2019-03-24 13:44:16 -05:00
Manfred Karrer
be94f106be
Add null check 2019-03-24 12:56:03 -05:00
Manfred Karrer
a6bdbe927b
Add null checks 2019-03-24 12:38:56 -05:00
Manfred Karrer
646c39033f
Add testnet seeds 2019-03-23 18:15:42 -05:00
Manfred Karrer
7c97a90f4a
Complete pull request
Use lockup and unlock tx for miner fee and tx size display.
The getMiningFeeAndTxSize in daoFacade was used for blind vote. Got
renamed in the meantime to make it more clear.
2019-03-23 17:06:28 -05:00
Manfred Karrer
c4a3a2ba77
Merge branch 'lock-bond-fees' of https://github.com/ben-kaufman/bisq into ben-kaufman-lock-bond-fees 2019-03-23 16:37:28 -05:00
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
43155b8926
Fix % display 2019-03-22 20:31:16 -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
f36678e90b
Add phaseChangeListener only after batch processing 2019-03-22 12:25:28 -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
c9ff5f7eba
Misc cleanups and refactorings 2019-03-21 18:45:53 -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
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
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