Commit graph

2891 commits

Author SHA1 Message Date
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
Manfred Karrer
07c0d6a4ff
Update seed node operator 2019-03-08 13:01:23 -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
Manfred Karrer
03023d6338
Remove myAddress from docs and scripts as it is not used/needed anymore 2019-03-08 10:58:53 -05:00
Manfred Karrer
28a28983dc
Add missing address entry items at restore from seed words 2019-03-07 23:41:21 -05:00
Manfred Karrer
01f3bdc557
Make vote result json deterministic 2019-03-07 17:53:30 -05:00
Manfred Karrer
9a5695dedc
Fix missing support for localhost seed node addresses 2019-03-07 17:23:05 -05:00
Manfred Karrer
1292f77daa
Merge branch 'master' of https://github.com/bisq-network/bisq 2019-03-07 16:36:54 -05:00
Christoph Atteneder
0a42b15972
Improve wording for security deposit 2019-03-07 18:15:17 +01:00
Manfred Karrer
d9f9baf87a
Update comments 2019-03-07 11:29:56 -05:00
Florian Reimair
9418c1d7a3
Fix default regtest seednodes 2019-03-07 17:08:49 +01:00
Florian Reimair
b27befed63
--myAddress property is not needed anymore 2019-03-07 17:08:49 +01:00
Florian Reimair
e15d99e8ae
Use resourceAsStream so it works on files in .jar as well 2019-03-07 17:08:49 +01:00
Florian Reimair
de93a6fa1b
Revert "Revert 2473067b090603dec983fa18995453bdd6d8de94"
This reverts commit a9ee15d9f6.
2019-03-07 17:08:49 +01:00
Manfred Karrer
75f90e56ba
Add dummy instance for deprecated payment methods
To show display string of payment method we need to create an instance
2019-03-06 22:44:49 -05:00
Manfred Karrer
1eeb47cef7
Add removed deprecated payment methods again as it would break
trade history

We got some reports that the trade history was gone and it turned out
the removal of the deprecated payment methods caused an exception when
reading the persisted closed trades. So we have to keep that code to not
break old db files.
2019-03-06 22:38:40 -05:00
Manfred Karrer
1ef854f510
Merge pull request #2127 from oscarguindzberg/bisq-version2-tx-support
Basic support for version 2 transactions.
2019-03-06 18:46:42 -05: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
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
873a57eea9 Added button to export voting history into json 2019-03-06 15:31:43 +02:00
Florian Reimair
00872427de
Get rid of Capability ordinals
github.com/AlDanial/cloc v 1.80  T=0.19 s (5.3 files/s, 5.3 lines/s)
-------------------------------------------------------------------------------
                             files          blank        comment           code
-------------------------------------------------------------------------------
 same                            0              0            913           3405
 modified                       28              0              6            145
 added                           1             18             36             58
 removed                         0              9              3            103
-------------------------------------------------------------------------------
2019-03-06 09:29:26 +01:00
Manfred Karrer
92b91ba391
Merge pull request #2500 from ManfredKarrer/remove-dev-logging
Remove Log.traceCall methods
2019-03-05 11:52:21 -05:00
Manfred Karrer
dd7c578a66
Remove if statement 2019-03-05 11:25:34 -05:00
Manfred Karrer
b711f571a4
Cleanup some log.debug calls 2019-03-05 11:24:07 -05:00
Manfred Karrer
1d0fdf4c55
Cleanup some log.trace calls 2019-03-05 11:11:04 -05:00
Manfred Karrer
7fd2030003
Remove Log.traceCall methods
Florian reported that they consume quite a bit of performance.As
they have not been used for development testing since long we should
better remove those.
2019-03-05 10:32:39 -05:00
Christoph Atteneder
6381078d78
Update translations 2019-03-05 16:04:16 +01:00
Christoph Atteneder
279b38bf2e
Add information icon to buyer security deposit showing the deposit amount in BTC 2019-03-05 13:07:24 +01:00
Manfred Karrer
cffa42a7a2
Update security deposit values 2019-03-05 00:04:24 -05:00
Manfred Karrer
e04d042e4e
Update security deposit values 2019-03-04 23:48:41 -05:00
Manfred Karrer
b8f8fbff20
Use percentage based value for security deposits
Use percentage based value of trade amount for buyer and seller
security deposit.
To ensure that the BTC value is not getting too low, we apply a min.
value for both.
2019-03-04 23:35:35 -05:00
Manfred Karrer
ba376febac
Add TxType to bsqWalletService.commit call 2019-03-04 11:35:05 -05:00
Manfred Karrer
64f085ce48
Merge branch 'allow-spending-unconfirmed-bsq-utxs'
# Conflicts:
#	core/src/main/java/bisq/core/trade/protocol/tasks/taker/CreateTakerFeeTx.java
2019-03-04 11:20:55 -05:00
Manfred Karrer
f790bfce86
Merge branch 'add-live-trading' 2019-03-04 11:13:11 -05:00
Manfred Karrer
dcadbdfc3e
Merge branch 'master' into avoid-taker-fee-publishing-for-failed-trades
# Conflicts:
#	core/src/main/java/bisq/core/offer/OfferPayload.java
2019-03-04 11:12:04 -05:00
Manfred Karrer
804f8e9abf
Improve wording 2019-03-04 11:10:26 -05:00
Manfred Karrer
9e7a619ba4
Merge branch 'master' into add-live-trading 2019-03-04 11:09:24 -05:00