Commit graph

1042 commits

Author SHA1 Message Date
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
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
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
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
ff5d18a493
Use block height of proposal tx if available
To be able to apply the validation also on past cycles we need to use
the block height if the proposal tx and not the current one. Just in
case the tx is not confirmed (when temp proposal gets published) we use
the current height, but that would anyway match the cycle.
In a past cycle params could have been different and validation need to
use the correct param value from that cycle.
2019-03-18 23:39:57 -05:00
Manfred Karrer
d02609af2a
Refactor: Rename ValidationException to ProposalValidationException 2019-03-18 21:56:25 -05:00
Manfred Karrer
3d5e109b82
Rename getMiningFeeAndTxSize to getBlindVoteMiningFeeAndTxSize 2019-03-18 18:22:19 -05:00
Manfred Karrer
01a582f26b
Add BTC_DAO_BETANET
We want to test on mainnet with a test genesis tx. We create a new
network type which is BTC mainnet but has a different data directory to
make sure to not mix up the real wallet with the betatest
2019-03-16 16:16:32 -05:00
Manfred Karrer
b7941c82c3
Merge branch 'master' into add-hash-of-dao-state 2019-03-16 13:04:06 -05:00
Manfred Karrer
b222fd28f2
Change file name for DaoStateStore db file to DaoStateStore2, Cleanup
- Change onDaoStateBlockChainChanged to onChangeAfterBatchProcessing
to make it more clear that it is only called after parsing of
blockchain is completed.
- Change file name for DaoStateStore db file to DaoStateStore2
- Remove TODOs and outdated comments
- Increase delay for broadcasting
2019-03-16 12:47:12 -05:00
Manfred Karrer
00e350e256
Small fixes 2019-03-15 22:58:34 -05:00
Manfred Karrer
933fa46780
Fix table layout issue
The setFitToRowsForTableView call at activate fixes the issue that the
views sometimes do not render when changing views.
2019-03-15 21:45:25 -05:00
Manfred Karrer
4af74950cb
Add blind vote monitoring 2019-03-15 19:38:30 -05:00
Ben Kaufman
1f34b3197e Added mining fee to un/lock bond popup. 2019-03-15 20:05:06 +02:00
Manfred Karrer
2109c66e51
Add num proposals
- Cleanups
- Improve logs
2019-03-15 10:18:31 -05:00
Manfred Karrer
59bed76c0c
Add proposal monitor view 2019-03-14 21:11:38 -05:00
Manfred Karrer
36852701cd
Move monitor view to new tab 2019-03-14 20:31:27 -05:00
Manfred Karrer
2009c30d81
Refactor dao state monitor
- Move dao state monitor classes to other package structure
- Add support for proposal payload monitor (WIP)
- Use generics and sub classes for common functionality
2019-03-14 19:03:11 -05:00
Manfred Karrer
9c0156012a
Call listeners only after batch of hashes is processed 2019-03-13 22:23:05 -05:00
Manfred Karrer
47024d18b6
Show dash instead of N/A for prev hash at genesis height 2019-03-13 11:08:23 -05:00
Manfred Karrer
c280f30fa7
Use domain data or sorting 2019-03-13 10:56:24 -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
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
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
Ben Kaufman
f7f91da927 Added feedback popup for DAO test users 2019-03-10 15:43:49 +02: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
ee0fef4d2f
Remove duplicate entry for number of proposals 2019-03-08 12:20:06 -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
Christoph Atteneder
ced71361b4
Merge pull request #2519 from ben-kaufman/txid-proposal-display
Add txId to proposal display
2019-03-08 17:51:23 +01:00
Ben Kaufman
864fc55c25 Use correct method to open bisq explorer 2019-03-08 18:20:28 +02:00
Ben Kaufman
a5af75961c Add txId to proposal display 2019-03-08 12:03:00 +02:00
Manfred Karrer
9152733bb1
Set wallet date 1 day earlier to cover timezone issues
We subtract 1 day to be sure to not have any issues with timezones.
Even if we can be sure that the timezone
is handled correctly it could be that the user created the wallet in
one timezone and make a restore at
a different timezone which could lead in the worst case that he miss
the first day of the wallet transactions.
2019-03-07 21:46:25 -05:00
Manfred Karrer
01f3bdc557
Make vote result json deterministic 2019-03-07 17:53:30 -05:00
Manfred Karrer
6481a53f5c
Merge pull request #2512 from ripcurlx/fix-problem-with-display-of-zero-trading-fees
Show the correct BSQ or BTC trading fee if it is maker or taker
2019-03-07 15:53:28 -05:00
Christoph Atteneder
85274b1e52
Show the correct BSQ or BTC trading fee if it is maker or taker 2019-03-07 18:43:27 +01:00
Christoph Atteneder
0a42b15972
Improve wording for security deposit 2019-03-07 18:15:17 +01:00
Christoph Atteneder
eefa649836
Fix null pointer if security deposit percentage is changed before amount was set 2019-03-07 17:48:52 +01: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
7d59e1a67a
Adjust layout of export Json button 2019-03-06 17:27:07 -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
2a4e004133 Fixes and improvements 2019-03-06 23:38:16 +02:00
Christoph Atteneder
d6fb97880a
Revert to SNAPSHOT 2019-03-06 15:37:23 +01:00
Ben Kaufman
873a57eea9 Added button to export voting history into json 2019-03-06 15:31:43 +02:00