obelisk

Electrum server using libbitcoin as its backend
git clone https://git.parazyd.org/obelisk
Log | Files | Refs | README | LICENSE

commit 901c92c3a40271b74cf91c45cbb5eb9aaee1dd49
parent 9687a637842164907ab4f9399df4fef69b61e0f3
Author: parazyd <parazyd@dyne.org>
Date:   Thu,  8 Apr 2021 23:43:41 +0200

Change correlation logic (needs review).

I am not sure if this is the correct behaviour, but balance retrieved
seems to be correct for the following scripthashes:

c036b0ff3ad79662cd517cd5fe1fa0af07377b9262d16f276f11ced69aaa6921
92dd1eb7c042956d3dd9185a58a2578f61fee91347196604540838ccd0f8c08c

N.B. Reverse them if using with bx.

Diffstat:
Melectrumobelisk/zeromq.py | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/electrumobelisk/zeromq.py b/electrumobelisk/zeromq.py @@ -410,7 +410,7 @@ class Client: @staticmethod def __correlate_spends_to_receives(points, transfers, checksum_to_index): for point in points: - if point[0] == 0: # receive + if point[0] == 1: # receive continue spent = { @@ -431,7 +431,7 @@ class Client: checksum_to_index = {} for point in points: - if point[0] == 1: # spent + if point[0] == 0: # spent continue transfers.append({