From 276a6701f6c264d7700b8e9513209fe173f48c79 Mon Sep 17 00:00:00 2001 From: cwaldron97 <32018000+cwaldron97@users.noreply.github.com> Date: Fri, 21 Jun 2019 16:06:44 -0500 Subject: [PATCH] fixed all compiler errors and warning --- .../src/main/scala/org/bitcoins/core/gcs/GolombFilter.scala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/main/scala/org/bitcoins/core/gcs/GolombFilter.scala b/core/src/main/scala/org/bitcoins/core/gcs/GolombFilter.scala index 9414bdf7d9..8e990520e1 100644 --- a/core/src/main/scala/org/bitcoins/core/gcs/GolombFilter.scala +++ b/core/src/main/scala/org/bitcoins/core/gcs/GolombFilter.scala @@ -149,7 +149,9 @@ object BlockFilter { def apply( block: Block, prevOutputScripts: Vector[ScriptPubKey]): GolombFilter = { - val key: SipHashKey = block.blockHeader.hash.bytes.take(16) + val keyBytes: ByteVector = block.blockHeader.hash.bytes.take(16) + + val key: SipHashKey = SipHashKey(keyBytes) val newScriptPubKeys: Vector[ByteVector] = getOutputScriptPubKeysFromBlock(block).map(_.asmBytes) @@ -170,7 +172,7 @@ object BlockFilter { val (size, filterBytes) = bytes.splitAt(1) val n = CompactSizeUInt.fromBytes(size) - GolombFilter(blockHash.bytes.take(16), + GolombFilter(SipHashKey(blockHash.bytes.take(16)), BlockFilter.M, BlockFilter.P, n,