From 64495cc5fee60ea06cfe7d887f6db123985dfc2a Mon Sep 17 00:00:00 2001 From: Antoine Riard Date: Thu, 17 Nov 2022 21:50:03 -0500 Subject: [PATCH] Drop Network arg from max_money() Amount of coins available stay in the same across Bitcoin network: signet, testnet, mainet. From my understanding this is a leftover from some potential multi-chain support. --- bitcoin/src/blockdata/constants.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/blockdata/constants.rs b/bitcoin/src/blockdata/constants.rs index c74fd88f..ce5fc24c 100644 --- a/bitcoin/src/blockdata/constants.rs +++ b/bitcoin/src/blockdata/constants.rs @@ -60,7 +60,7 @@ pub const MAX_SCRIPTNUM_VALUE: u32 = 0x80000000; // 2^31 /// The maximum value allowed in an output (useful for sanity checking, /// since keeping everything below this value should prevent overflows /// if you are doing anything remotely sane with monetary values). -pub fn max_money(_: Network) -> u64 { +pub fn max_money() -> u64 { 21_000_000 * COIN_VALUE }