port to hush
This commit is contained in:
@@ -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,
|
||||
&[
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user