From fb116b144234d920133f7c5898f5dd35b3f771bd Mon Sep 17 00:00:00 2001 From: canonbrother Date: Mon, 16 Sep 2024 16:37:16 +0800 Subject: [PATCH] revert prefix regtest to testnet --- bitcoin/src/blockdata/constants.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitcoin/src/blockdata/constants.rs b/bitcoin/src/blockdata/constants.rs index d716a88f..13b2bf5d 100644 --- a/bitcoin/src/blockdata/constants.rs +++ b/bitcoin/src/blockdata/constants.rs @@ -54,9 +54,9 @@ pub const PUBKEY_ADDRESS_PREFIX_TEST: u8 = 15; // 0xf (defichain testnet, devnet pub const SCRIPT_ADDRESS_PREFIX_TEST: u8 = 128; // 0x80 (defichain testnet, devnet changi) /// Regtest pubkey address prefix. -pub const PUBKEY_ADDRESS_PREFIX_REGTEST: u8 = 111; // 0x6f (defichain regtest) +pub const PUBKEY_ADDRESS_PREFIX_REGTEST: u8 = 15; // 0x6f (defichain regtest) /// Regtest script address prefix. -pub const SCRIPT_ADDRESS_PREFIX_REGTEST: u8 = 196; // 0xc4 (defichain regtest) +pub const SCRIPT_ADDRESS_PREFIX_REGTEST: u8 = 128; // 0xc4 (defichain regtest) /// The maximum allowed script size. pub const MAX_SCRIPT_ELEMENT_SIZE: usize = 520;