Commit graph

308 commits

Author SHA1 Message Date
Christoph Sturm
bd06d2a7df document what this is for 2019-08-14 10:42:38 +02:00
Christoph Sturm
95b65976ad simplify 2019-08-13 19:55:03 +02:00
Christoph Sturm
0babe82d09 remove jmockit 2019-08-13 19:47:40 +02:00
Christoph Sturm
e9a45196a8 remove powermock from core. 2019-08-13 18:13:10 +02:00
Christoph Sturm
9a587609dd WIP remove powermock 2019-08-13 18:08:33 +02:00
Christoph Sturm
de01018368 remove empty lines 2019-07-30 15:42:12 +02:00
Christoph Sturm
8d0a9b38ba make test nicer 2019-07-30 15:40:17 +02:00
Christoph Sturm
c715aa2d5d start unit testing SignedWitness 2019-07-30 15:40:17 +02:00
Christoph Sturm
022534643e rename 2019-07-30 15:40:08 +02:00
Christoph Sturm
e62e718d89 make local what can be local 2019-07-30 13:07:12 +02:00
Christoph Sturm
00c0168aea inline test method and simplify 2019-07-30 13:07:12 +02:00
Christoph Sturm
9f54f480e6 move all init code to setUp 2019-07-30 13:07:12 +02:00
Christoph Atteneder
fdf5364c47 Add domain layer for signed account age witnesses (credits ManfredKarrer and oscarguindzberg) 2019-07-30 11:38:57 +02:00
sqrrm
70b7660e6c
Merge pull request #3005 from christophsturm/christoph/split-pb
split the pb.java file into multiple files
2019-07-26 16:14:57 +02:00
Christoph Sturm
de4e1d7b58 move protobuf to proto package 2019-07-25 14:08:00 +02:00
Christoph Sturm
1c0fe2673f split pb.java file into separate files. 2019-07-25 13:40:02 +02:00
Devin Bileck
2d204c1306
Reflect change in operator for seed node jhgcy2won7xnslrb 2019-07-24 15:49:44 -07:00
Manfred Karrer
a8ed773e84
Update node operators 2019-05-14 14:25:26 +02:00
Devin Bileck
d01af3f3cf
Reflect mainnet seednode operator change
I have taken over one of the seednodes from @manfredkarrer.
2019-05-03 15:19:32 -07:00
Manfred Karrer
25e2621ce5
Fix missing arguments 2019-04-19 20:37:19 -05:00
Manfred Karrer
4442a2e8c1
Add missing parameter in test 2019-04-14 22:14:14 -05:00
Manfred Karrer
d916101564
Fix missing argument in test 2019-04-07 20:31:53 -05:00
Manfred Karrer
26fd61defb
Fix tests 2019-03-22 14:31:48 -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
dbf3ebadea
Use ProposalValidatorProvider to operate on concrete ProposalValidator
We used ProposalValidator for most validation processes but that missed
the custom validation in the sub classed for each proposal type.
ProposalValidator is now abstract and ProposalValidatorProvider returns
instance matching to proposal type.
2019-03-18 23:19:23 -05:00
Manfred Karrer
3dc99391e9
Refactor ChangeParamValidator 2019-03-18 21:55:41 -05:00
Manfred Karrer
a3eed2b82d
Fix missing parm in GenesisTxInfo constructor in test 2019-03-16 19:00:51 -05:00
Manfred Karrer
e3dace8f3f
Fix tests 2019-03-15 23:20:09 -05:00
Manfred Karrer
07c0d6a4ff
Update seed node operator 2019-03-08 13:01:23 -05:00
Manfred Karrer
03023d6338
Remove myAddress from docs and scripts as it is not used/needed anymore 2019-03-08 10:58:53 -05:00
Florian Reimair
de93a6fa1b
Revert "Revert 2473067b090603dec983fa18995453bdd6d8de94"
This reverts commit a9ee15d9f6.
2019-03-07 17:08:49 +01:00
Manfred Karrer
a9ee15d9f6
Revert 2473067b09
Seed nodes do not connect to correct network. The PR needs to be better
tested and fixed.
2019-02-27 14:00:05 -05:00
Florian Reimair
df540d7ce8
Honor manually provided seed nodes 2019-02-25 14:52:22 +01:00
Florian Reimair
282b0f2ef2
Refactor SeedNodeRepo stuff 2019-02-25 14:51:38 +01:00
Manfred Karrer
a188aa6dfa
Use mainnet notwork id for test as testnet does not has any seed node defined 2019-02-20 20:49:02 -05:00
Manfred Karrer
744ff486e6
Add TODO 2019-02-18 12:20:06 -05:00
Manfred Karrer
2b954c35e7
Fix incorrect maxTradeLimit assignment from Offer
- Make all PaymentMethod constructors private
- Use PaymentMethod.getPaymentMethodById in Offer for getting the
PaymentMethod. This change a bit the context as now we always create the
PaymentMethod from the actual code base in contrast to the data which
have been used when creating the offer. As our fields as final and must
not change in software updates it should have no issues but we have to
keep that in mind to not alter the default values.
- Added a runtimeException in case the maxTradeLimit does not match one
of our default values.
- Use PaymentMethod.getDummyPaymentMethod(GUIUtil.SHOW_ALL_FLAG)
instead of new PaymentMethod(GUIUtil.SHOW_ALL_FLAG))
2019-02-14 15:16:33 -05:00
Manfred Karrer
11bc11fd24
Remove code for Venmo, Cashapp and OKPay
- We had an automate remove accounts for those payment methods for long
time, so we can assume that no traders have any of those accounts still
in their persisted user objects and it is safe to completely remove them.
Only part where we cannot remove it is the PB definitions (actually I
think we could remove those as well, but not 100% sure and it seems to
be more safe to mark those as deprecated and leave the entries).
2019-02-13 21:34:51 -05:00
Manfred Karrer
0699c58c81
Increase trade limit. Make trade limit a DAO parameter
- Set max trade limit to 2 BTC (for altcoins)
- Add MAX_TRADE_LIMIT to Param
- Round first month trade limit to ensure we stick with precision 4 for
the btc amount
- Use risk factors to derive trade limits for different payment method
risk categories
2019-02-12 12:57:44 -05:00
Manfred Karrer
1a7200859d
Fix testclass with missing param 2019-02-03 11:17:24 +01:00
Manfred Karrer
200c90b7aa
Merge pull request #2251 from ManfredKarrer/refactor-fee-estimation
Refactor fee estimation
2019-01-23 13:44:27 +01:00
Christoph Atteneder
741df88f96
Add HashMap for removed assets that are still traded on Bisq to prevent displaying of "N/A" 2019-01-22 18:26:32 +01:00
Manfred Karrer
877d0ae3ac
Break up test method
Set ignore to failing tests

@Bernard could you have a look and try to get those working?
Reason for problem is that repeated calls to getEstimatedFeeTxSize
do not work (returns 0 at second call in loop which cause test to fail)
2019-01-14 15:09:37 +01:00
Manfred Karrer
645719cf64
Remove PowerMockRunner 2019-01-14 14:33:40 +01:00
Manfred Karrer
76dd6b5126
Add TxFeeEstimationServiceTest 2019-01-11 23:20:46 +01:00
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