Merge rust-bitcoin/rust-bitcoin#1399: Drop Network arg from max_money()
64495cc5fe
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: https://github.com/lightningdevkit/rust-lightning/pull/1839#discussion_r1019753069 If there is already an existent PR, it can be closed, however didn't find one. ACKs for top commit: apoelstra: ACK64495cc5fe
tcharding: ACK64495cc5fe
Tree-SHA512: 929011ee73c5eda903fb0140438ed5e88c8f5b7378036a87a6a660a8b9138bf204bf59a0ba822c0cd98e37e97d2d0dbbf8c9893a834da9acdf817ba43a5ed5b6
This commit is contained in:
commit
1696038313
|
@ -60,7 +60,7 @@ pub const MAX_SCRIPTNUM_VALUE: u32 = 0x80000000; // 2^31
|
||||||
/// The maximum value allowed in an output (useful for sanity checking,
|
/// The maximum value allowed in an output (useful for sanity checking,
|
||||||
/// since keeping everything below this value should prevent overflows
|
/// since keeping everything below this value should prevent overflows
|
||||||
/// if you are doing anything remotely sane with monetary values).
|
/// 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
|
21_000_000 * COIN_VALUE
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue