From 1ae7d285fcc7ff5b6c383e39deeb3cc33c82b419 Mon Sep 17 00:00:00 2001 From: Forrest Voight Date: Fri, 3 Feb 2012 23:54:07 -0500 Subject: [PATCH] fixed compressed pubkey handling --- p2pool/bitcoin/data.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/p2pool/bitcoin/data.py b/p2pool/bitcoin/data.py index 07f2ff6..0d3c844 100644 --- a/p2pool/bitcoin/data.py +++ b/p2pool/bitcoin/data.py @@ -248,7 +248,8 @@ def address_to_pubkey_hash(address, net): # transactions def pubkey_to_script2(pubkey): - return ('\x41' + pubkey) + '\xac' + assert len(pubkey) <= 75 + return (chr(len(pubkey)) + pubkey) + '\xac' def pubkey_hash_to_script2(pubkey_hash): return '\x76\xa9' + ('\x14' + pack.IntType(160).pack(pubkey_hash)) + '\x88\xac' -- 1.7.1