Skip to content

Commit e8cff54

Browse files
committed
lifted MAX_MONEY to i64::MAX
1 parent 646f317 commit e8cff54

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ default = ["json-contract"]
1414

1515
json-contract = ["serde_json"]
1616
"serde" = [
17-
"bitcoin/serde",
1817
"bitcoin/serde",
1918
"secp256k1-zkp/serde",
2019
"actual-serde",

src/blind.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ impl fmt::Display for TxOutError {
5959
TxOutError::MoneyOutofRange => write!(
6060
f,
6161
"Explicit amount must be\
62-
less than 21 million"
62+
less or equal than i64::MAX"
6363
),
6464
TxOutError::NonUnspendableZeroValue => {
6565
write!(
@@ -468,7 +468,7 @@ impl TxOut {
468468
/// Rangeproof Minimum private bits
469469
pub const RANGEPROOF_MIN_PRIV_BITS: u8 = 52;
470470
/// Maximum explicit amount in a bitcoin `TxOut`
471-
pub const MAX_MONEY: u64 = 21_000_000 * 100_000_000;
471+
pub const MAX_MONEY: u64 = i64::MAX as u64;
472472

473473
/// Creates a new confidential output that is **not** the last one in the transaction.
474474
/// Provide input secret information by creating [`SurjectionInput`] for each input.

0 commit comments

Comments
 (0)