port to hush

This commit is contained in:
DenioD
2019-10-20 16:03:23 +02:00
parent 7510890cf3
commit 44a1c3981d
3 changed files with 5 additions and 5 deletions

View File

@@ -169,7 +169,7 @@ mod tests {
#[test]
fn p2pkh() {
let addr = TransparentAddress::PublicKey([4; 20]);
let addr = TransparentAddress::PublicKey([4; 21]);
assert_eq!(
&addr.script().0,
&[
@@ -182,7 +182,7 @@ mod tests {
#[test]
fn p2sh() {
let addr = TransparentAddress::Script([7; 20]);
let addr = TransparentAddress::Script([7; 21]);
assert_eq!(
&addr.script().0,
&[

View File

@@ -1,7 +1,7 @@
use byteorder::{LittleEndian, ReadBytesExt, WriteBytesExt};
use std::io::{self, Read, Write};
const MAX_SIZE: usize = 0x02000000;
const MAX_SIZE: usize = 0x02100000;
struct CompactSize;