Fix BTC.getMedianBlockTime() and update tests

This commit is contained in:
catbref
2020-05-27 09:29:11 +01:00
parent 3d4fc38fcb
commit 274002c473
2 changed files with 1 additions and 35 deletions

View File

@@ -95,7 +95,7 @@ public class BTC {
return null;
// Grab latest 11 blocks
List<byte[]> blockHeaders = this.electrumX.getBlockHeaders(height, 11);
List<byte[]> blockHeaders = this.electrumX.getBlockHeaders(height - 11, 11);
if (blockHeaders == null || blockHeaders.size() < 11)
return null;