Commit graph

8967 commits

Author SHA1 Message Date
Manfred Karrer
0e2bb14683
Break up lines 2019-03-31 17:43:14 -05:00
Manfred Karrer
e9e4b49014
Add number of irregular txs to UI 2019-03-31 17:41:59 -05:00
Manfred Karrer
4d56ce9a10
Apply ExtraDataMapValidator for all extraDataMap fields 2019-03-31 17:35:14 -05:00
Manfred Karrer
dad4b04093
Update comment 2019-03-31 17:31:53 -05:00
Manfred Karrer
30a710f179
Cleanup 2019-03-31 16:30:35 -05:00
Manfred Karrer
e74ce128b3
Improve comments, cleanup 2019-03-31 16:28:34 -05:00
Manfred Karrer
431f76e058
Add BTC_DAO_TESTNET 2019-03-31 16:11:00 -05:00
Manfred Karrer
fa3ec340fa
Merge branch 'master' into add-check-for-bsq-balance
# Conflicts:
#	core/src/main/resources/i18n/displayStrings_de.properties
#	core/src/main/resources/i18n/displayStrings_el.properties
#	core/src/main/resources/i18n/displayStrings_es.properties
#	core/src/main/resources/i18n/displayStrings_fa.properties
#	core/src/main/resources/i18n/displayStrings_fr.properties
#	core/src/main/resources/i18n/displayStrings_hu.properties
#	core/src/main/resources/i18n/displayStrings_pt.properties
#	core/src/main/resources/i18n/displayStrings_ro.properties
#	core/src/main/resources/i18n/displayStrings_ru.properties
#	core/src/main/resources/i18n/displayStrings_sr.properties
#	core/src/main/resources/i18n/displayStrings_th.properties
#	core/src/main/resources/i18n/displayStrings_vi.properties
#	core/src/main/resources/i18n/displayStrings_zh.properties
2019-03-31 16:09:53 -05:00
Manfred Karrer
c7bd2ee4b8
Add BTC_DAO_TESTNET again to keep supporting current dao testnet
- It is more safe to separate the BTC_DAO_TESTNET and BTC_DAO_REGTEST
by the network ID as that prevents on the P2P network layer that the
network could interconnect. We would have risked that we receive network
data from the other network as users would use the persisted peers for
connections.
2019-03-31 15:55:55 -05:00
Manfred Karrer
73db81a34f
Add more validation
- Check max length of strings and byte arrays
- Check that tx ID has 64 chars
- Add ExtraDataMapValidator for validating extraDataMap fields
2019-03-31 15:49:37 -05:00
Manfred Karrer
122bc80cdd
Use null instead of empty string for txId 2019-03-31 15:47:21 -05:00
Manfred Karrer
e624625bbb
Fix missing close handler and avoid nullPointer exception 2019-03-31 15:46:09 -05:00
Manfred Karrer
fe646e5436
Add string validations 2019-03-31 13:37:55 -05:00
Manfred Karrer
d5fc7cb97e
Use burnedBsq field in Tx for burnedFee and invalidatedBsq
In case of an invalid tx we burn all available BSQ input. We only know
that at parsing time. We renamed the burntFee field to burntBsq to make
it more generic and use it for the burnt fee in case if a normal tx and
as invalidatedBsq in case of an invalid tx.
2019-03-30 19:35:12 -05:00
Manfred Karrer
823cec086c
Improve handling fo p2p network data broadcasts 2019-03-30 18:45:58 -05:00
Manfred Karrer
d422a732e7
Handle merits better
We did not update the merit correctly in case there was no proposal
selected.
2019-03-30 16:58:28 -05:00
Manfred Karrer
69b134b99e
Refactoring: Rename method 2019-03-30 16:57:47 -05:00
Manfred Karrer
e2d9fe1b5f
Fix comment 2019-03-30 16:53:55 -05:00
Manfred Karrer
b39c8bed41
Refactoring: Rename method 2019-03-30 16:53:33 -05:00
Manfred Karrer
1e6f0bf8e9
Refactoring: Rename method 2019-03-30 16:53:07 -05:00
Manfred Karrer
a71a573dd9
Add better comments, cleanup 2019-03-30 16:51:55 -05:00
Manfred Karrer
a28805b983
Use onParseBlockCompleteAfterBatchProcessing to avoid sequence issues
When using onParseBlockChainComplete and
onParseBlockCompleteAfterBatchProcessing the
onParseBlockCompleteAfterBatchProcessing is called earlier as
onParseBlockChainComplete which caused incorrect state update in the UI.
2019-03-30 16:02:20 -05:00
Manfred Karrer
d5c7e0a660
Improve Merit handling
- We add a filter to the getMeritStake method to avoid an exception at
getWeightedMeritAmount which would set merits to 0 in case the issuance
height blind would be larger than the vote height. I saw that error log
but could not reproduce it afterwards. It basically protects that we do
not add the issuance of the current cycle to the merit used in the
blind vote of that cycle.

- We add 1 block in the getCurrentlyAvailableMerit method to get the
same merit value if the blind vote was included in the next block.
2019-03-30 16:01:08 -05:00
Manfred Karrer
4b11e582a8
Set MAINNET_GENESIS_TOTAL_SUPPLY of old mainnet genesis 2019-03-30 15:55:38 -05:00
Manfred Karrer
c8762694d3
Merge pull request #2602 from oscarguindzberg/use-latest-bitcoinj
Use the latest bisq's bitcoinj (00298b1)
2019-03-29 21:23:34 -05:00
Manfred Karrer
bec73dce53
Add popup in case the utxo balance does not match the bsq balance 2019-03-29 19:42:56 -05:00
Manfred Karrer
a08b91055e
Add support for displaying burned BSQ from invalid txs 2019-03-29 19:42:32 -05:00
Oscar Guindzberg
fcbbec6497 Use the latest bisq's bitcoinj (00298b1) 2019-03-29 20:38:13 -03:00
Manfred Karrer
995844feb3
Remove setFitToRowsForTableView, update merit at activate 2019-03-29 16:44:34 -05:00
Manfred Karrer
30059ebb44
Cleanup 2019-03-29 14:29:55 -05:00
Manfred Karrer
bb7ff47d9a
Add random delay for proposalPayload publishing
We want to avoid that all nodes publish at the same time all proposals,
so we add a random delay from 100 ms - 5 sec.
A more sophisticated protection would be probably good but that delay
should help to avoid network spikes and is simple enough to not add
risks that the publishing would fail.
2019-03-29 13:42:19 -05:00
Manfred Karrer
bdf6689e9f
Merge pull request #2598 from ripcurlx/show-always-fiat-rounding-info
Show fiat rounding info popup also when switching between payment accounts
2019-03-29 07:49:11 -05:00
Christoph Atteneder
3c12b91949
Show fiat rounding info popup also when switching between payment accounts 2019-03-29 11:59:09 +01:00
Christoph Atteneder
702cb2d3f1
Update translations 2019-03-29 11:33:19 +01:00
Manfred Karrer
acf26482dc
Use lockupTxId instead of uid 2019-03-28 20:30:38 -05:00
Manfred Karrer
18a3f1e5fe
Merge branch 'master' into add-check-for-bsq-balance
# Conflicts:
#	core/src/main/resources/i18n/displayStrings.properties
2019-03-28 19:53:23 -05:00
Manfred Karrer
96a20aee91
Merge branch 'add-check-for-bsq-balance' of https://github.com/ManfredKarrer/bisq into add-check-for-bsq-balance 2019-03-28 19:51:40 -05:00
Manfred Karrer
695ed137e2
Fix if else case 2019-03-28 19:51:31 -05:00
Manfred Karrer
4587c74c48
Merge pull request #2595 from ripcurlx/dao-ui-improvements
DAO governance and bond improvements
2019-03-28 19:50:53 -05:00
sqrrm
24811ffab9
Update core/src/main/java/bisq/core/dao/governance/voteresult/VoteResultService.java
Co-Authored-By: ManfredKarrer <mk@nucleo.io>
2019-03-28 16:26:50 -05:00
sqrrm
c3a8c2798a
Update core/src/main/java/bisq/core/dao/governance/voteresult/VoteResultService.java
Co-Authored-By: ManfredKarrer <mk@nucleo.io>
2019-03-28 16:26:36 -05:00
Christoph Atteneder
dbc202215c
Improve bonded role display and linkage 2019-03-28 15:37:48 +01:00
Christoph Atteneder
2ee9b882c0
Add transaction id and date to proposal votes table 2019-03-28 12:17:01 +01:00
Christoph Atteneder
1ff3013a0b
Reset selected item to enable re-opening of proposal details 2019-03-28 11:40:34 +01:00
Manfred Karrer
39ee4c079f
Protect against proposal withhold attack
Set proposals which have been not included in the blind vote but which
have been later published and are part if the cycles proposals to
rejected.
A malicious voter could manipulate the software to withhold publishing
of his proposal and be the only voter on it. At the last block in the
blind vote phase he could publish the proposal but others cannot vote
anymore as they likely have already voted. In the vote result the
other voters would have treated it like ignored and if the voter had
enough BSQ to pass the quorum he could get accepted his proposal.
With this change we set all proposals which are not part in the blind
vote data but found in the cycle's ballot list as rejected.
2019-03-27 21:39:10 -05:00
Manfred Karrer
f3ad4ea5b5
Cleanup, add string 2019-03-27 21:35:05 -05:00
Manfred Karrer
499d91e7d5
Improve formatting 2019-03-27 21:34:49 -05:00
sqrrm
9202d28c79
Update core/src/main/java/bisq/core/dao/governance/param/Param.java
Co-Authored-By: ManfredKarrer <mk@nucleo.io>
2019-03-27 14:51:04 -05:00
sqrrm
f0787d8009
Update core/src/main/java/bisq/core/dao/governance/param/Param.java
Co-Authored-By: ManfredKarrer <mk@nucleo.io>
2019-03-27 14:50:56 -05:00
sqrrm
af3aedb51b
Update core/src/main/java/bisq/core/dao/governance/param/Param.java
Co-Authored-By: ManfredKarrer <mk@nucleo.io>
2019-03-27 14:50:47 -05:00