Repository navigation
Fix many bugs from Core 18 updates - #176
Conversation
Signed-off-by: HashEngineering <[email protected]>
* replace toPath with getAbsolutePath Signed-off-by: HashEngineering <[email protected]>
…actManager Signed-off-by: HashEngineering <[email protected]>
* try to find another download peer first * report error if no peers found Signed-off-by: HashEngineering <[email protected]>
Signed-off-by: HashEngineering <[email protected]>
| if (peer != null) { | ||
| peer.sendMessage(lastRequest.getRequestMessage()); | ||
| } else { | ||
| log.info("no peer supplied to retry the last update request: {}", lastRequest.request); | ||
| } |
There was a problem hiding this comment.
We were getting an NPE if peer was null. Not sure of the implications of doing this fix, but other changes should have a null peer if the DashJ has been completely disconnected from the network. The sync process should resume when reconnecting.
| if (isLocked) { | ||
| context.peerGroup.getLock().unlock(); | ||
| } |
There was a problem hiding this comment.
There is a crash due to tryLock failing above.
| if (executor.isShutdown()) | ||
| return; | ||
| log.info("Saving manager file: {}", file.toPath()); | ||
| log.info("Saving manager file: {}", file.getAbsolutePath()); |
There was a problem hiding this comment.
toPath() is not available on Android 6 or 7. getAbsolutePath() is used in many other places in DashJ.
There was a problem hiding this comment.
Perhaps we should have been building DashJ for Java 7 to avoid some of these types of errors.
Codecov Report
@@ Coverage Diff @@
## master #176 +/- ##
============================================
- Coverage 45.11% 45.09% -0.03%
+ Complexity 5330 5328 -2
============================================
Files 379 379
Lines 41492 41502 +10
Branches 5681 5685 +4
============================================
- Hits 18719 18714 -5
- Misses 20821 20834 +13
- Partials 1952 1954 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
| * <pre> | ||
| * Not used for wallet | ||
| * </pre> | ||
| * |
There was a problem hiding this comment.
Protos.java is a generated file from wallet.proto. One could ask why we include it in the repo. In bitcoinj it was removed from the repo (since it was autogenerated), but then those developers decided to add it back.
| shutdownAutosaveAndWait(); | ||
| if (vFileManager != null) { | ||
| shutdownAutosaveAndWait(); | ||
| } |
There was a problem hiding this comment.
This may be called more than once in Dash Wallet and then shutdownAutosaveAndWait would throw an exception.
* prevent connection to 0.17.x.x nodes Signed-off-by: HashEngineering <[email protected]>
* update nodes_main.txt using Dash Core 18.0.1 list Signed-off-by: HashEngineering <[email protected]>
3fe0478 to
db45b00
Compare
Signed-off-by: HashEngineering <[email protected]>
Signed-off-by: HashEngineering <[email protected]>
db45b00 to
15dfc54
Compare
Issue being fixed or feature implemented
What was done?
How Has This Been Tested?
Breaking Changes
Checklist:
For repository code-owners and collaborators only