clickItem(output)}>
{#if loadingSpends}
-
+ {:else if output.opreturn }
+
+
+
+
+
{:else if spends[output.index] == true}
-
+
{:else if spends[output.index]}
goToSpend(e, spends[output.index])} title="spent" class="put-link" in:fade|local={{ duration: 200 }}>
-
+
diff --git a/server/lib/bridge_block.ex b/server/lib/bridge_block.ex
index 937e2df..7425214 100644
--- a/server/lib/bridge_block.ex
+++ b/server/lib/bridge_block.ex
@@ -13,7 +13,6 @@ defmodule BitcoinStream.Bridge.Block do
alias BitcoinStream.Mempool, as: Mempool
alias BitcoinStream.RPC, as: RPC
alias BitcoinStream.BlockData, as: BlockData
- alias BitcoinStream.Index.Spend, as: SpendIndex
def child_spec(host: host, port: port) do
%{
diff --git a/server/lib/bridge_sequence.ex b/server/lib/bridge_sequence.ex
index 062d33c..8e32f89 100644
--- a/server/lib/bridge_sequence.ex
+++ b/server/lib/bridge_sequence.ex
@@ -109,7 +109,7 @@ defmodule BitcoinStream.Bridge.Sequence do
# Transaction removed from mempool for non block inclusion reason
'R' ->
- <
> = rest;
+ <<_seq::little-size(64)>> = rest;
case Mempool.drop(:mempool, hash) do
count when is_integer(count) ->
send_drop_tx(hash, count);
@@ -127,7 +127,7 @@ defmodule BitcoinStream.Bridge.Sequence do
true
# Don't care about other events
- other ->
+ _other ->
true
end
else
diff --git a/server/lib/protocol/transaction.ex b/server/lib/protocol/transaction.ex
index 74bf5ed..a21d33c 100644
--- a/server/lib/protocol/transaction.ex
+++ b/server/lib/protocol/transaction.ex
@@ -182,7 +182,7 @@ defmodule BitcoinStream.Protocol.Transaction do
# Retrieves cached inputs if available,
# otherwise inflates inputs in batches of up to 100
- def inflate_inputs(txid, inputs, fail_fast) do
+ def inflate_inputs(_txid, inputs, fail_fast) do
inflate_inputs(Enum.chunk_every(inputs, 100), [], 0, fail_fast)
end
diff --git a/server/lib/spend_index.ex b/server/lib/spend_index.ex
index 1d540dc..100ae1b 100644
--- a/server/lib/spend_index.ex
+++ b/server/lib/spend_index.ex
@@ -305,10 +305,10 @@ defmodule BitcoinStream.Index.Spend do
%{"error" => nil, "id" => index, "result" => nil} ->
{ index, true }
- %{"error" => nil, "id" => index, "result" => result} ->
+ %{"error" => nil, "id" => index, "result" => _result} ->
{ index, false }
- %{"error" => error, "id" => index } ->
+ %{"error" => _error, "id" => index } ->
{ index, false }
end
end),