Commit graph

7871 commits

Author SHA1 Message Date
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
Devin Bileck
fd775eb128
Update linux packaging process
The 64bitBuild.sh script has been renamed to package.sh and has
been updated so that it is capable of performing the complete packaging
process without having to rely on the jar first being built and prepped
from the MacOS scripts. However, it does support having the jar
previously built and prepped and will look for a prepped jar in the
desktop/package folder. If not found, it will build and prep it
prior to packaging.

Additionally, the Bruntime option passed to javapackager is unnecessary and
has been removed. The Bruntime option is valid only when the -native
option is set to jnlp.

Also, the prepare-system.sh script was removed as it did not appear to be
doing anything useful.

Finally, a release.sh script has been added that will perform the
release process of copying necessary files to a versioned release folder
and generating/verifying signatures. Windows and MacOS packaged installers
should be copied to their appropriate package folders prior to
executing this script if they are to be included in this release
process, otherwise only the Linux files will be included.
2019-01-03 00:33:00 -08: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
Manfred Karrer
0dadc05233
Add toString methods 2019-01-02 00:04:55 +01:00
Manfred Karrer
b81909925d
Merge pull request #2161 from CaveSpectre11/list-gamblecoin-asset
List GambleCoin (GMCN)
2019-01-01 23:34:05 +01:00
Manfred Karrer
a960533524
Merge pull request #2185 from BravoIndia/patch-3
Update displayStrings.properties (error & bug report message)
2019-01-01 23:29:53 +01:00
Cave Spectre
c495118c47 #2134 - Focus color of buttons should be more saturated/darker not lighter 2018-12-31 12:02:36 -05:00
BravoIndia
48cf173b27
Update displayStrings.properties
Clarifying/correcting grammar of bug report message.
2018-12-31 16:17:05 +07:00
Manfred Karrer
d013e7d8a5
Merge pull request #2181 from freimair/monitor
Bisq Network Monitor: Babysteps
2018-12-30 11:05:57 +01:00
Florian Reimair
32650f13ac Merge branch 'ManfredKarrer-monitor-nits' into monitor 2018-12-30 10:56:18 +01:00
Florian Reimair
decd648a41 Merge branch 'monitor-nits' of git://github.com/ManfredKarrer/bisq into ManfredKarrer-monitor-nits 2018-12-30 10:44:41 +01:00
Florian Reimair
cfec7146a2 Merge branch 'master' into monitor 2018-12-30 09:52:10 +01:00
Manfred Karrer
674a0bb129
Merge pull request #2009 from freimair/use-same-address-for-native-and-external-tor
Use same private_key in NewTor and RunningTor mode + Hiddenservice Fix
2018-12-29 15:05:33 +01:00
Manfred Karrer
b18c0b0ecd
Ignore tests
- Revert spelling error as misspelling was used for test
- Add TODO for failing test (timing issue, seems to fail just sometimes)
- Set @Disable to test classes which take longer as Tor is started
2018-12-29 14:46:06 +01:00
Manfred Karrer
e39f91aab5
Update hashes 2018-12-29 14:44:18 +01:00
Manfred Karrer
579d1f101d
Use 1.1.10 instead of $logbackVersion
$logbackVersion causes build errors.
2018-12-29 14:18:37 +01:00
Manfred Karrer
69b168eaee
Add guava 2018-12-29 14:16:10 +01:00
Manfred Karrer
1c58d89465
Apply code inspection
- Fix spelling
- Remove exception throw clause which was never thrown
- Add not null preconditions
- Remove unneeded types in diamonds
- Add final
- Fix java doc
- Make Reporter constructor protected (abstract)
2018-12-29 14:13:26 +01:00
Florian Reimair
36612185e1 Removed unused dummy Metric 2018-12-29 14:04:33 +01:00
Manfred Karrer
cb533f4364
Update gitignore
- Add /monitor/TorHiddenServiceStartupTimeTests/* and
/monitor/monitor-tor/*
2018-12-29 13:54:08 +01:00
Manfred Karrer
2d8ca8c0f9
Add monitor directory as parent for test directories
- Apply reorg imports and reformat to test classes
2018-12-29 13:53:30 +01:00
Manfred Karrer
2762d74c8f
Rename TorRoundtripTime to TorRoundTripTime 2018-12-29 13:44:57 +01:00