HomePhabricator

[chronik] Fix handling of -chronikelectrummaxhistory

Description

[chronik] Fix handling of -chronikelectrummaxhistory

Summary: The option is assiging a 64 bits signed integer into a 32 bit unsigned integer, which might not work. This diff makes sure the value is withing bounds.

Test Plan:

ninja all check-all

Reviewers: #bitcoin_abc, tobias_ruck

Reviewed By: #bitcoin_abc, tobias_ruck

Subscribers: tobias_ruck

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

Details

Provenance
FabienAuthored on Fri, Feb 21, 13:23
FabienPushed on Fri, Feb 21, 13:57
Reviewer
Restricted Project
Differential Revision
D17683: [chronik] Fix handling of -chronikelectrummaxhistory
Parents
rABCb760220009df: [chronik] make the maximum history length for electrum RPCs an init param
Branches
Unknown
Tags
Unknown