From 6a901342a5bd4925da8018c7e6a56a3421bc154f Mon Sep 17 00:00:00 2001 From: Mononaut Date: Wed, 9 Apr 2025 09:48:41 +0000 Subject: [PATCH] simple sighash highlighting --- .../transaction-raw.component.html | 2 +- .../transactions-list.component.html | 47 +++++- .../transactions-list.component.scss | 115 ++++++++++++++ .../transactions-list.component.ts | 43 +++++ frontend/src/app/shared/script.utils.ts | 3 + frontend/src/app/shared/shared.module.ts | 3 +- frontend/src/app/shared/transaction.utils.ts | 149 ++++++++++++++++++ 7 files changed, 352 insertions(+), 10 deletions(-) diff --git a/frontend/src/app/components/transaction/transaction-raw.component.html b/frontend/src/app/components/transaction/transaction-raw.component.html index 85b04d361..2da08a569 100644 --- a/frontend/src/app/components/transaction/transaction-raw.component.html +++ b/frontend/src/app/components/transaction/transaction-raw.component.html @@ -147,7 +147,7 @@ - +

Details

diff --git a/frontend/src/app/components/transactions-list/transactions-list.component.html b/frontend/src/app/components/transactions-list/transactions-list.component.html index 1f2250d68..243151185 100644 --- a/frontend/src/app/components/transactions-list/transactions-list.component.html +++ b/frontend/src/app/components/transactions-list/transactions-list.component.html @@ -28,7 +28,8 @@ @@ -54,6 +55,30 @@ + @if (signatures) { + +
+ @if (tx['_sigs'][vindex].length === 0) { + + + + } @else { + @for (sig of tx['_sigs'][vindex]; track sig.signature; let idx = $index) { + @if (idx < 10) { + + + + } + } + @if (tx['_sigs'][vindex].length > 10) { + + +{{ tx['_sigs'][vindex].length - 10 }} + + } + } +
+ + }
Coinbase (Newly Generated Coins)
{{ vin.scriptsig | hex2ascii }}
@@ -106,15 +131,19 @@ + @if (signatures) { + + } - + @@ -201,7 +230,7 @@ - -
+
+ @@ -335,7 +366,7 @@ -
+