Commit graph

2749 commits

Author SHA1 Message Date
Florian Reimair
9f1556f339
Cleanup capabilities setup 2019-03-18 12:59:24 +01:00
Florian Reimair
837b4dffb3
Refactor Capabilities for Peer 2019-03-18 12:46:32 +01:00
Florian Reimair
7a03aba02e
Refactor Capabilities for Connection 2019-03-18 12:29:09 +01:00
Manfred Karrer
51f332eb2d
Fix comment 2019-03-17 21:59:19 -05:00
Manfred Karrer
765bf54a0a
Use shorter phase periods for dao-betanet 2019-03-16 21:18:53 -05:00
Manfred Karrer
41d5fc5395
Improve wording 2019-03-16 18:37:05 -05:00
Manfred Karrer
0caa5bc18f
Set DAO_BETANET (Mainnet test) genesis tx 2019-03-16 18:32:31 -05:00
Manfred Karrer
55f01df842
Make genesisTotalSupply customizable by network.
- Add genesisTotalSupply prog arg
2019-03-16 16:57:03 -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
0ba2f6fc92
Cleanup after code inspection 2019-03-16 13:00:42 -05:00
Manfred Karrer
82e2a4860a
Add comments 2019-03-16 12:56:13 -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
f5ab159cb5
Remove useless stopAndRemoveTimer call 2019-03-15 22:14:03 -05:00
Manfred Karrer
4af74950cb
Add blind vote monitoring 2019-03-15 19:38:30 -05:00
Manfred Karrer
2109c66e51
Add num proposals
- Cleanups
- Improve logs
2019-03-15 10:18:31 -05:00
Manfred Karrer
52e1455d92
Refactor updateHashChain 2019-03-14 22:02:43 -05:00
Manfred Karrer
3411cde8b7
Reflect code review comments 2019-03-14 22:01:38 -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
eb3d65d187
Add snapshot support for hashChain
- Add hashChain to snapshot
- Use TreeMap instead of Map to have deterministic order
- Use eventCoordinator to make correct order of execution transparent
- Fix missing applying of nonBsqTxOutputMap at applySnapshot
2019-03-13 22:03:14 -05:00
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