Commit graph

163 commits

Author SHA1 Message Date
Manfred Karrer
c6e6d55465
Fix test 2019-01-08 15:23:34 +01:00
Sergey
04febc22b3 implemented unit test for BallotListService#addListeners 2018-12-28 13:10:37 +04:00
Manfred Karrer
9ee3c0e39b
Add missing param for test 2018-12-12 18:56:05 +01:00
Manfred Karrer
397772f5d0
Fix tests 2018-12-05 02:38:56 +01:00
Manfred Karrer
c0d2d534bc
Fix reorg issues
In case of reorgs there are several scenarios:
1. We have no snapshot yet: We start from genesis again
2. We have a snapshot and go back to that: We use last snapshot
3. We have a snapshot but the reorg does deeper so our last block in the
snapshot is invalid as well: -> we go back to genesis

There are many edge cases

There was one important bug fix with a == instead of an equals
comparison.

Added also the check that the first block need to be the genesis block.

Unfortunately the chainHeight is set to the genesis height initially
which is not right (should be 0 as we dont have any block and therefore
no chainHeight). To change that will be a bit risky, but for mainnet we
should consider it. There are several usages where a change might break
stuff, for instance the parameter handling.
2018-12-05 02:12:38 +01:00
Devin Bileck
f3799187cc
Handle cli-output_windows.txt with CRLF line endings
On Windows, it is likely that cli-output_windows.txt will have CRLF line
endings since core.autocrlf is normally true which converts LF endings
to CRLF on checkout. This causes BisqHelpFormatterTest to fail since
the actual content it is compared against uses LF endings.

As a result, when loading the cli-output_windows.txt file normalize
line endings to LF.
2018-12-02 22:36:00 -08:00
Manfred Karrer
0e64a7193d
Merge branch 'master' into release-candidate-0.9.0 2018-11-25 23:52:51 +01:00
Devin Bileck
054f293622
Resolve BisqHelpFormatterTest failure on Windows
The expected content for the CLI help output needs different path
separators on Windows.
2018-11-24 23:45:43 -08:00
Chris Beams
931f369fb6
Include executable name and version in help output 2018-11-24 13:24:03 +01:00
Chris Beams
2a537a601b
Introduce BisqHelpFormatter
Prior to this commit, help output for Bisq executables, e.g. Bisq
Desktop itself used JOptSimple's default HelpFormatter implementation,
which creates a quite cramped and hard-to-read output.

This commit introduces a custom HelpFormatter implementation modeled
after bitcoind's own help output. It maximizes readability while making
full use of an 80-character width.
2018-11-24 13:19:56 +01:00
Manfred Karrer
a3e01759b0
Moving classes
That was a big commit with restructuring the packages and classes.
Motivation was to isolate the daoState value objects so it is more clear
which data are help in the daoState. As it was hard to keep an overview
and easy to add mutable data I think that makes it more safe overall.
I am aware that the downside to take out domain models from the domain
packages is not so nice.
Also moved blockchain models to parser and full node packages.
2018-11-01 17:11:40 -05:00
Manfred Karrer
2ba68a13b8
Fix missing param in test class 2018-10-29 21:47:57 -05:00
Christoph Atteneder
e99d860f16
Clean up CashDeposit Form and all changes related 2018-10-25 12:11:10 +02:00
Manfred Karrer
bccecc1f16
FIx missing arguments in test 2018-10-23 12:42:05 -05:00
Manfred Karrer
4d30fcb46d
Merge branch 'master' into Dao-UI-improvements 2018-10-17 10:59:05 -05:00
Manfred Karrer
6d18a9ea78
Rename BsqState to DaoState 2018-10-17 00:13:42 -05:00
Manfred Karrer
a308469ac6
Support for persisted bsqState as resource file
- Move DecryptedBallotsWithMerits list and EvaluatedProposal list to
BsqState

- Use StoreService for handling persistence of snapshots
2018-10-16 23:21:11 -05:00
Manfred Karrer
d33298d087
Add more tests 2018-10-16 13:53:58 -05:00
Manfred Karrer
dabe6907e1
Fix missing sorting 2018-10-16 12:40:10 -05:00
Manfred Karrer
2d593ee88f
Merge branch 'master' into arbitration-system-improvements 2018-10-05 15:21:41 -05:00
Manfred Karrer
ba876d8884
Refactor parsing of genesis tx
- Extract genesis parsing to GenesisTxParser
- Cleanups
2018-10-04 00:38:21 -05:00
Manfred Karrer
8bcefaa135
Implement new arbitrator selection rule 2018-10-02 22:09:15 -05:00
Manfred Karrer
1e7dc5e95f
Add arbitrator to OfferAvailabilityResponse 2018-10-02 18:17:15 -05:00
Manfred Karrer
f2e289d0a6
Add ArbitratorSelection based on tradestatistics 2018-10-02 18:15:47 -05:00
Manfred Karrer
a9e32c0bdd
Move maker classes back to desktop module 2018-09-27 00:16:24 -05:00
Manfred Karrer
29193ad928
Fix failing test 2018-09-26 23:58:58 -05:00
Manfred Karrer
fd87ff369c
Refactor and fix asset checks 2018-09-26 18:37:41 -05:00
Manfred Karrer
c231750900
Move classed from desktop to core 2018-09-26 16:03:42 -05:00
Manfred Karrer
401418e963
Add GenesisTxInfo to param in test class 2018-09-25 20:01:29 -05:00
Manfred Karrer
bb20264473
Move classes 2018-09-23 15:35:06 -05:00
Manfred Karrer
920ad2e1b5
Rename network package to nodes 2018-09-23 15:29:09 -05:00
Manfred Karrer
8d0f6b7556
Rename BitcoinNodes to BtcNodes 2018-09-23 15:22:20 -05:00
Manfred Karrer
361605d4e3
Rename PeerAddressesRepository to BtcNodesRepository 2018-09-23 15:21:41 -05:00
Manfred Karrer
6e90554f84
Rename WalletNetworkConfig to BtcNetworkConfig 2018-09-23 15:20:41 -05:00
Manfred Karrer
06d0a4a80a
Rename WalletSetupPreferences to BtcNodesSetupPreferences 2018-09-23 15:19:57 -05:00
Manfred Karrer
5f56d08d33
Fix package structure in tests 2018-09-23 15:18:22 -05:00
Manfred Karrer
0d86176f4e
Further refactorings: move classes to other packages 2018-09-23 15:09:22 -05:00
Manfred Karrer
16fac73b6d
Further refactorings move classes to other packages 2018-09-23 14:56:46 -05:00
Manfred Karrer
f3f719a632
Move btc setup classes to setup package 2018-09-23 14:46:58 -05:00
Christoph Atteneder
db179914ad
Remove not thrown exceptions 2018-09-18 20:50:01 +02:00
Christoph Atteneder
4c068af7b3
Use default security provider instead of Bouncy Castle 2018-09-14 16:02:58 +02:00
Christoph Atteneder
64370f7adb
Fix JMockit setup 2018-09-13 10:46:07 +02:00
Christoph Atteneder
8ed7f4218f
Add not working JMockit setup (help wanted) 2018-09-07 14:03:52 +02:00
Christoph Atteneder
e319449186
Make power mock tests Java 10 compatibile 2018-09-07 14:02:22 +02:00
Christoph Atteneder
7a5eb33b67
Merge commit for @chirhonul 's commit "core: Drop now unnecessary files" 8cd93def30bd7039f5c8da77c1c9eff0a8cc35d8 2018-09-05 11:00:49 +02:00
Christoph Atteneder
049655b685
Merge core repository at 4597613 2018-09-05 10:48:22 +02:00
Chris Beams
970095f9ab
Move core module to new bisq-core repository 2018-03-10 17:29:25 +01:00
Chris Beams
f20a904568
Merge pull request #1362 from tau3/refactoring/core-seed-nodes-repository
Refactoring of CoreSeedNodesRepository + unit tests
2018-03-10 11:11:04 +01:00
Chris Beams
cef131151c
Merge branch 'master' into tau3-refactoring/core-seed-nodes-repository 2018-03-10 10:59:42 +01:00
Manfred Karrer
dd5fe5d197
Use Interface for read and write access to BsqBlcokChain. Use SingleThreadExecutor in Full- and LiteNodeExecutor. 2018-03-09 19:45:40 -05:00