HomePhabricator

[ecash-herald] Patch use of float vs int for sats

Description

[ecash-herald] Patch use of float vs int for sats

Summary: Oversight from implementation of staking rewards parsing. parseFloat will work fine but we should parseInt as all output.value instances from chronik are expected to be strings of satoshi values, i.e. integers.

Test Plan: npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D14791

Details

Provenance
bytesofmanAuthored on Nov 15 2023, 17:17
bytesofmanPushed on Nov 15 2023, 17:42
Reviewer
Restricted Project
Differential Revision
D14791: [ecash-herald] Patch use of float vs int for sats
Parents
rABCfd10231f1238: Add some release note for the new checkpoints
Branches
Unknown
Tags
Unknown