From 2da47b5531a7dd7b63d4f9f0cd29914cfd211ca0 Mon Sep 17 00:00:00 2001 From: bitspill Date: Fri, 22 Feb 2019 13:30:33 -0800 Subject: [PATCH] swap priority of script hash prefixes default to using `e`/`f` rather than `4` on P2SH addresses example transaction https://livenet.flocha.in/tx/cfb1b7b0f57283a078c6cbd9bf7baf9f688b454814a3e4199f9508b901db40c6 --- lib/protocol/networks.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/protocol/networks.js b/lib/protocol/networks.js index 5227ddcd..2eaa229d 100644 --- a/lib/protocol/networks.js +++ b/lib/protocol/networks.js @@ -482,8 +482,8 @@ main.keyPrefix = { main.addressPrefix = { pubkeyhash: 0x23, - scripthash: 0x08, - scripthash2: 0x5e, + scripthash: 0x5e, + scripthash2: 0x08, witnesspubkeyhash: 0x06, witnessscripthash: 0x0a, bech32: 'flo'