1
0
mirror of https://github.com/GOSTSec/poolserver synced 2025-02-06 12:04:29 +00:00

Fixed structures for peercoin

This commit is contained in:
Intel 2014-05-04 18:43:20 -04:00
parent cac65c723b
commit 13670c2a92
2 changed files with 8 additions and 1 deletions

View File

@ -72,6 +72,8 @@ void NetworkMgr::UpdateBlockTemplate()
block->tx.push_back(tx);
}
block->signature = BinaryData(72, 0);
// Genrate merkle tree
block->BuildMerkleTree();

View File

@ -48,9 +48,14 @@ namespace Bitcoin
txin.script = scriptsig.Binary();
txin.n = 0;
ByteBuffer temp;
temp.Append<uint8>(pubkey.size());
temp << pubkey;
temp.Append<uint8>(Bitcoin::OP_CHECKSIG);
TxOut txout;
txout.value = value;
txout.scriptPubKey = Bitcoin::Script(pubkey) + Bitcoin::OP_CHECKSIG;
txout.scriptPubKey = Bitcoin::Script(temp.Binary());
Transaction tx;
tx.version = 1;