Commit graph

7732 commits

Author SHA1 Message Date
Manfred Karrer
618281cee9
Remove BisqFacade 2019-01-06 03:34:14 +01:00
Manfred Karrer
c7f8faa804
Implement BisqSetupCompleteListener at BisqExecutable 2019-01-06 03:30:27 +01:00
Manfred Karrer
a41b4a5ffc
Merge pull request #2199 from ManfredKarrer/dao-fix-performance-issue-at-parsing
Dao: Fix performance issue at parsing
2019-01-05 20:08:15 +01:00
Manfred Karrer
f832633593
Merge branch 'master' into dao-fix-performance-issue-at-parsing 2019-01-05 16:23:17 +01:00
Manfred Karrer
a3287ab0c2
Merge pull request #2195 from ManfredKarrer/dao-fix-vote-reveal-tx-publishing
Dao: fix vote reveal tx publishing
2019-01-05 16:22:42 +01:00
Manfred Karrer
4d8a348efb
Merge branch 'master' into dao-fix-vote-reveal-tx-publishing 2019-01-05 16:12:36 +01:00
Manfred Karrer
f12ff5ce92
Adjust % value for offer price tolerance window
- There have been some reports that the 0,5% value is too narrow so we
increase it to 1%.
2019-01-04 13:50:38 +01:00
Manfred Karrer
39f3c6effe
Merge pull request #2191 from ManfredKarrer/dao-fix-late-proposals-processing
Dao: fix late proposals processing
2019-01-04 13:21:10 +01:00
Christoph Atteneder
d338564d00
Merge pull request #2198 from oscarguindzberg/freebitcoinj
Be able to upgrade bitcoinj without upgrading libdohj
2019-01-04 12:29:28 +01:00
Christoph Atteneder
4e5e58e595
Merge pull request #2165 from devinbileck/update-install_java.bat
Update install_java.bat
2019-01-04 12:10:45 +01:00
Christoph Atteneder
d1a5aaec3e
Merge pull request #2164 from devinbileck/update_windows_install_experience
Update windows install experience
2019-01-04 12:09:27 +01:00
Manfred Karrer
a8626025c2
Add db storage files 2019-01-04 00:32:20 +01:00
Manfred Karrer
0a5417b861
Add duration for batch parsing to logs 2019-01-04 00:08:00 +01:00
Manfred Karrer
930d7a79e3
Call onParseBlockComplete listeners only after onParseBlockChainComplete
To avoid performance issues we omit the listener calls at
onParseBlockComplete as long we are in the batch processing of blocks.
Without that optimization it took about 50 sec. for 4000 blocks, with it
we could reduce it to 4 seconds.
2019-01-04 00:07:35 +01:00
Manfred Karrer
c334018845
Change log level 2019-01-04 00:01:21 +01:00
Manfred Karrer
9ab941ff4a
Move logs and comments to 'if' clause 2019-01-03 23:33:30 +01:00
Manfred Karrer
2f9125a3db
Improve logs 2019-01-03 22:55:05 +01:00
Manfred Karrer
d23bb2cd18
Improve logs 2019-01-03 22:34:58 +01:00
Manfred Karrer
c87383a017
Refactorings 2019-01-03 22:34:47 +01:00
Manfred Karrer
c1792a3e7f
Ignore items if isBlindVoteInCorrectPhaseAndCycle is false.
If we get a voteReveal tx which was published too late we ignore it.
- Refactorings
- Improve logs
2019-01-03 22:34:13 +01:00
Manfred Karrer
0a9f4fc236
Remove phase and cycle check for vote reveal txs.
We do not check phase or cycle as a late voteReveal tx is considered
a valid BSQ tx. The vote result though will ignore such votes.

Add more log info.
2019-01-03 22:32:27 +01:00
Manfred Karrer
c137e7ec09
Refactor maybeRevealVotes method.
Add exception handling to revealVote
2019-01-03 22:31:14 +01:00
Manfred Karrer
ef37dc3256
Set chainTipHeight before parsing. 2019-01-03 22:30:25 +01:00
Oscar Guindzberg
f4a40ca6f6 Be able to upgrade bitcoinj without upgrading libdohj 2019-01-03 15:57:26 -03:00
Manfred Karrer
db439ce4e2
Merge pull request #2197 from oscarguindzberg/asset-dependency
Remove "pricenode" direct dependency on "assets"
2019-01-03 19:38:55 +01:00
Oscar Guindzberg
257a8627e6 Remove "pricenode" direct dependency on "assets"
It depends on "assets" already because it is a depencendy of "core"
2019-01-03 14:49:45 -03:00
Manfred Karrer
e70612dbfc
Merge branch 'master' into dao-fix-vote-reveal-tx-publishing 2019-01-03 17:50:33 +01:00
Manfred Karrer
31547048b9
Merge branch 'master' into dao-fix-late-proposals-processing 2019-01-03 17:50:05 +01:00
Manfred Karrer
aca24f290e
Merge pull request #2194 from freimair/netlayer063
Introduce netlayer release 0.6.3
2019-01-03 17:46:24 +01:00
Florian Reimair
bd0cf85f16 Introduce netlayer release 0.6.3 2019-01-03 17:11:21 +01:00
Manfred Karrer
4fd8490df1
Handle late vote reveal txs
If the phase and cycle for the vote reveal tx was missed we still
publish it but it is considered invalid. We do not throw an exception
but filter such txs away from the vote result evaluation.

We cannot use the strategy to unlock the BSQ from the vote tx in such a
case because the blind vote tx is already in the past and is not parsed
again (snapshot).
Alternatively we could have used a different tx type for the unlock
purpose but we prefer to keep such an exceptional case simple.
2019-01-03 16:44:39 +01:00
Manfred Karrer
00d0aa51e3
Use chain tip height for vote reveal tx publishing
- Use the chain tip height and not the current chain height in the
parsing to check if we are in the correct phase and cycle. Only
publish the tx if we are in the correct cycle.
2019-01-03 15:39:03 +01:00
Manfred Karrer
96581155e8
Add chainTipHeight property
- We want to know for the vote reveal service what is the latest block.
Currently that is not exposed in the DAO only in the BitcoinJ classes,
but we don't want to access it from there.
2019-01-03 15:37:44 +01:00
Manfred Karrer
ff22470262
Improve logging 2019-01-03 15:07:37 +01:00
Manfred Karrer
879d6d6c43
Merge pull request #2192 from ManfredKarrer/revert-netlayer-update
Revert to netlayer 0.6 because of an issue with seednodes
2019-01-03 14:55:49 +01:00
Manfred Karrer
975643aa56
Revert to netlayer 0.6 because of an issue with seednodes
If a seednode is using netwlayer version 0.6.2 (or 0.6.1) it is not
reachable from other nodes. Still unclear what causes that and if it
would affect also normal Bisq nodes, but to be careful we revert to
latest stable netlayer version which fixes the issue.
2019-01-03 14:18:57 +01:00
Manfred Karrer
c63ecb1ec3
Improve logging 2019-01-03 14:00:39 +01:00
Manfred Karrer
d57f6ad3d2
Fix startup behaviour.
Call fillListFromProtectedStore and fillListFromAppendOnlyDataStore
at start. The listeners are not triggered as registered after we have
received the initial data. So we need to read the P2P network data at
the start method.
2019-01-03 14:00:19 +01:00
Manfred Karrer
abb34230a3
Change handling of addListeners and start calls
We add first all listeners at all services and then call the start methods.
Some services are listening on others so we need to make sure that the
listeners are set before we call start as that might trigger state change
which triggers listeners.

- Change order of ballotListService and proposalService to reflect
dependency.
2019-01-03 13:58:58 +01:00
Manfred Karrer
0b30b69355
Fix handling of case when no seed node is available.
In regtest we got incorrectly onNoPeersAvailable called if the first
seed node in our list was not available. It triggered a
onAllServicesInitialized and led to incorrect behaviour in case we
received data from the second seednode. One bug was that we did not
clone the remaining nodes list in the for loop which led that the list
was empty for each delayed call. The other bug was that we did not
check if there is another connection attempt open when we got a
connection fault from the not available seed.
2019-01-03 12:31:56 +01:00
Manfred Karrer
5c747d71d9
Use lambda 2019-01-03 10:51:41 +01:00
Manfred Karrer
a6a974ef5c
Remove final qualifier 2019-01-03 10:51:19 +01:00
Manfred Karrer
9f27fefe22
Add number of blocks in comment 2019-01-03 10:30:42 +01:00
Manfred Karrer
a7be0c4d31
Improve error logs 2019-01-03 10:16:26 +01:00
Manfred Karrer
1b17109b6b
Add more logs 2019-01-03 00:23:33 +01:00
Manfred Karrer
cbc559c7ee
Only log warning if mainnet 2019-01-02 02:02:07 +01:00
Manfred Karrer
ccd90e763d
Add peer address to error log
- Add full toString method to Connection.SharedModel
2019-01-02 00:34:19 +01:00
Manfred Karrer
b48984c8f5
Add comment 2019-01-02 00:07:31 +01:00
Manfred Karrer
d35adf68ae
Comment out debug logs 2019-01-02 00:06:00 +01:00
Manfred Karrer
4c3a721535
Improve logging 2019-01-02 00:05:14 +01:00