mirror of
https://github.com/Retropex/bitfeed.git
synced 2025-05-12 19:20:46 +02:00
v2.3.1 bug fixes
This commit is contained in:
parent
951a3514fe
commit
d7fdaabd5e
@ -484,7 +484,7 @@ async function goToBlock(e) {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.chevron {
|
.raw-svg {
|
||||||
.outline {
|
.outline {
|
||||||
stroke: white;
|
stroke: white;
|
||||||
stroke-width: 32;
|
stroke-width: 32;
|
||||||
@ -501,13 +501,13 @@ async function goToBlock(e) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
&:hover {
|
&:hover {
|
||||||
.chevron .outline {
|
.raw-svg .outline {
|
||||||
fill-opacity: 1;
|
fill-opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.loading {
|
&.loading {
|
||||||
.chevron .outline {
|
.raw-svg .outline {
|
||||||
stroke-opacity: 0;
|
stroke-opacity: 0;
|
||||||
animation-name: svgpulse;
|
animation-name: svgpulse;
|
||||||
animation-delay: 500ms;
|
animation-delay: 500ms;
|
||||||
@ -519,7 +519,7 @@ async function goToBlock(e) {
|
|||||||
&.disabled {
|
&.disabled {
|
||||||
cursor: normal;
|
cursor: normal;
|
||||||
opacity: 0.5;
|
opacity: 0.5;
|
||||||
.chevron .outline {
|
.raw-svg .outline {
|
||||||
stroke-opacity: 1;
|
stroke-opacity: 1;
|
||||||
fill-opacity: 1;
|
fill-opacity: 1;
|
||||||
}
|
}
|
||||||
@ -710,7 +710,7 @@ async function goToBlock(e) {
|
|||||||
<div class="entry" class:clickable={input.rest} class:highlight={highlight.in != null && highlight.in === index} on:click={() => clickItem(input)}>
|
<div class="entry" class:clickable={input.rest} class:highlight={highlight.in != null && highlight.in === index} on:click={() => clickItem(input)}>
|
||||||
{#if input.prev_txid }
|
{#if input.prev_txid }
|
||||||
<a href="/tx/{input.prev_txid}:{input.prev_vout}" on:click={(e) => goToInput(e, input)} class="put-link" transition:fade|local={{ duration: 200 }}>
|
<a href="/tx/{input.prev_txid}:{input.prev_vout}" on:click={(e) => goToInput(e, input)} class="put-link" transition:fade|local={{ duration: 200 }}>
|
||||||
<svg class="chevron left" height="1.2em" width="1.2em" viewBox="0 0 512 512">
|
<svg class="raw-svg left" height="1.2em" width="1.2em" viewBox="0 0 512 512">
|
||||||
<path d="M 107.628,257.54 327.095,38.078 404,114.989 261.506,257.483 404,399.978 327.086,476.89 Z" class="outline" />
|
<path d="M 107.628,257.54 327.095,38.078 404,114.989 261.506,257.483 404,399.978 327.086,476.89 Z" class="outline" />
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
@ -753,19 +753,25 @@ async function goToBlock(e) {
|
|||||||
<div class="entry" class:clickable={output.rest} class:highlight={highlight.out != null && highlight.out === output.index} on:click={() => clickItem(output)}>
|
<div class="entry" class:clickable={output.rest} class:highlight={highlight.out != null && highlight.out === output.index} on:click={() => clickItem(output)}>
|
||||||
{#if loadingSpends}
|
{#if loadingSpends}
|
||||||
<span class="put-link loading" out:fade|local={{ duration: 500 }}>
|
<span class="put-link loading" out:fade|local={{ duration: 500 }}>
|
||||||
<svg class="chevron right" height="1.2em" width="1.2em" viewBox="0 0 512 512">
|
<svg class="raw-svg right" height="1.2em" width="1.2em" viewBox="0 0 512 512">
|
||||||
<path d="M 107.628,257.54 327.095,38.078 404,114.989 261.506,257.483 404,399.978 327.086,476.89 Z" class="outline" />
|
<path d="M 107.628,257.54 327.095,38.078 404,114.989 261.506,257.483 404,399.978 327.086,476.89 Z" class="outline" />
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
|
{:else if output.opreturn }
|
||||||
|
<span class="put-link disabled" in:fade|local={{ duration: 200 }} title="unspendable">
|
||||||
|
<svg class="raw-svg" height="1.2em" width="1.2em" viewBox="0 0 512 512">
|
||||||
|
<path d="M 69.323814,148.51977 148.51977,69.323812 256,176.80404 363.48024,69.3238 442.67619,148.51977 335.19596,256 442.6762,363.48023 363.48023,442.67619 256,335.19596 148.51978,442.6762 69.323812,363.48023 176.80404,256 Z" class="outline" />
|
||||||
|
</svg>
|
||||||
|
</span>
|
||||||
{:else if spends[output.index] == true}
|
{:else if spends[output.index] == true}
|
||||||
<span class="put-link disabled" in:fade|local={{ duration: 200 }} title="spent">
|
<span class="put-link disabled" in:fade|local={{ duration: 200 }} title="spent">
|
||||||
<svg class="chevron right" height="1.2em" width="1.2em" viewBox="0 0 512 512">
|
<svg class="raw-svg right" height="1.2em" width="1.2em" viewBox="0 0 512 512">
|
||||||
<path d="M 107.628,257.54 327.095,38.078 404,114.989 261.506,257.483 404,399.978 327.086,476.89 Z" class="outline" />
|
<path d="M 107.628,257.54 327.095,38.078 404,114.989 261.506,257.483 404,399.978 327.086,476.89 Z" class="outline" />
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
{:else if spends[output.index]}
|
{:else if spends[output.index]}
|
||||||
<a href="/tx/{spends[output.index].vin}:{spends[output.index].txid}" on:click={(e) => goToSpend(e, spends[output.index])} title="spent" class="put-link" in:fade|local={{ duration: 200 }}>
|
<a href="/tx/{spends[output.index].vin}:{spends[output.index].txid}" on:click={(e) => goToSpend(e, spends[output.index])} title="spent" class="put-link" in:fade|local={{ duration: 200 }}>
|
||||||
<svg class="chevron right" height="1.2em" width="1.2em" viewBox="0 0 512 512">
|
<svg class="raw-svg right" height="1.2em" width="1.2em" viewBox="0 0 512 512">
|
||||||
<path d="M 107.628,257.54 327.095,38.078 404,114.989 261.506,257.483 404,399.978 327.086,476.89 Z" class="outline" />
|
<path d="M 107.628,257.54 327.095,38.078 404,114.989 261.506,257.483 404,399.978 327.086,476.89 Z" class="outline" />
|
||||||
</svg>
|
</svg>
|
||||||
</a>
|
</a>
|
||||||
|
@ -13,7 +13,6 @@ defmodule BitcoinStream.Bridge.Block do
|
|||||||
alias BitcoinStream.Mempool, as: Mempool
|
alias BitcoinStream.Mempool, as: Mempool
|
||||||
alias BitcoinStream.RPC, as: RPC
|
alias BitcoinStream.RPC, as: RPC
|
||||||
alias BitcoinStream.BlockData, as: BlockData
|
alias BitcoinStream.BlockData, as: BlockData
|
||||||
alias BitcoinStream.Index.Spend, as: SpendIndex
|
|
||||||
|
|
||||||
def child_spec(host: host, port: port) do
|
def child_spec(host: host, port: port) do
|
||||||
%{
|
%{
|
||||||
|
@ -109,7 +109,7 @@ defmodule BitcoinStream.Bridge.Sequence do
|
|||||||
|
|
||||||
# Transaction removed from mempool for non block inclusion reason
|
# Transaction removed from mempool for non block inclusion reason
|
||||||
'R' ->
|
'R' ->
|
||||||
<<seq::little-size(64)>> = rest;
|
<<_seq::little-size(64)>> = rest;
|
||||||
case Mempool.drop(:mempool, hash) do
|
case Mempool.drop(:mempool, hash) do
|
||||||
count when is_integer(count) ->
|
count when is_integer(count) ->
|
||||||
send_drop_tx(hash, count);
|
send_drop_tx(hash, count);
|
||||||
@ -127,7 +127,7 @@ defmodule BitcoinStream.Bridge.Sequence do
|
|||||||
true
|
true
|
||||||
|
|
||||||
# Don't care about other events
|
# Don't care about other events
|
||||||
other ->
|
_other ->
|
||||||
true
|
true
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
@ -182,7 +182,7 @@ defmodule BitcoinStream.Protocol.Transaction do
|
|||||||
|
|
||||||
# Retrieves cached inputs if available,
|
# Retrieves cached inputs if available,
|
||||||
# otherwise inflates inputs in batches of up to 100
|
# 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)
|
inflate_inputs(Enum.chunk_every(inputs, 100), [], 0, fail_fast)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -305,10 +305,10 @@ defmodule BitcoinStream.Index.Spend do
|
|||||||
%{"error" => nil, "id" => index, "result" => nil} ->
|
%{"error" => nil, "id" => index, "result" => nil} ->
|
||||||
{ index, true }
|
{ index, true }
|
||||||
|
|
||||||
%{"error" => nil, "id" => index, "result" => result} ->
|
%{"error" => nil, "id" => index, "result" => _result} ->
|
||||||
{ index, false }
|
{ index, false }
|
||||||
|
|
||||||
%{"error" => error, "id" => index } ->
|
%{"error" => _error, "id" => index } ->
|
||||||
{ index, false }
|
{ index, false }
|
||||||
end
|
end
|
||||||
end),
|
end),
|
||||||
|
Loading…
Reference in New Issue
Block a user