Skip to content

Commit 1696038

Browse files
committed
Merge #1399: Drop Network arg from max_money()
64495cc Drop Network arg from max_money() (Antoine Riard) Pull request description: 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. For more context: lightningdevkit/rust-lightning#1839 (comment) If there is already an existent PR, it can be closed, however didn't find one. ACKs for top commit: apoelstra: ACK 64495cc tcharding: ACK 64495cc Tree-SHA512: 929011ee73c5eda903fb0140438ed5e88c8f5b7378036a87a6a660a8b9138bf204bf59a0ba822c0cd98e37e97d2d0dbbf8c9893a834da9acdf817ba43a5ed5b6
2 parents 99a28db + 64495cc commit 1696038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitcoin/src/blockdata/constants.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub const MAX_SCRIPTNUM_VALUE: u32 = 0x80000000; // 2^31
6060
/// The maximum value allowed in an output (useful for sanity checking,
6161
/// since keeping everything below this value should prevent overflows
6262
/// if you are doing anything remotely sane with monetary values).
63-
pub fn max_money(_: Network) -> u64 {
63+
pub fn max_money() -> u64 {
6464
21_000_000 * COIN_VALUE
6565
}
6666

0 commit comments

Comments
 (0)