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:
parent
cac65c723b
commit
13670c2a92
@ -72,6 +72,8 @@ void NetworkMgr::UpdateBlockTemplate()
|
||||
block->tx.push_back(tx);
|
||||
}
|
||||
|
||||
block->signature = BinaryData(72, 0);
|
||||
|
||||
// Genrate merkle tree
|
||||
block->BuildMerkleTree();
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user