4 #ifndef ANONCOIN_AUXPOW_H
5 #define ANONCOIN_AUXPOW_H
36 nSerSize +=
SerReadWrite(s, parentBlock, nType | SER_BLOCKHEADERONLY, nVersion, ser_action);
47 template <
typename Stream>
50 if (nVersion & BLOCK_VERSION_AUXPOW)
57 template <
typename Stream>
60 if (nVersion & BLOCK_VERSION_AUXPOW)
62 return SerReadWrite(s, *auxpow, nType, nVersion, ser_action);
67 template <
typename Stream>
70 if (nVersion & BLOCK_VERSION_AUXPOW)
73 return SerReadWrite(s, *auxpow, nType, nVersion, ser_action);
std::vector< uint256 > vChainMerkleBranch
unsigned int SerReadWrite(Stream &s, const T &obj, int nType, int nVersion, CSerActionGetSerializeSize ser_action)
CAuxPow(const CTransaction &txIn)
uint256 GetParentBlockHash()
unsigned int GetSerializeSize(char a, int, int=0)
int ReadWriteAuxPow(Stream &s, const boost::shared_ptr< CAuxPow > &auxpow, int nType, int nVersion, CSerActionGetSerializeSize ser_action)
void RemoveMergedMiningHeader(std::vector< unsigned char > &vchAux)
CScript MakeCoinbaseWithAux(unsigned int nBits, unsigned int nExtraNonce, std::vector< unsigned char > &vchAux)
Serialized script, used inside transaction inputs and outputs.
The basic transaction that is broadcasted on the network and contained in blocks. ...
IMPLEMENT_SERIALIZE(nSerSize+=SerReadWrite(s,*(CMerkleTx *) this, nType, nVersion, ser_action);nVersion=this->nVersion;READWRITE(vChainMerkleBranch);READWRITE(nChainIndex);nSerSize+=SerReadWrite(s, parentBlock, nType|SER_BLOCKHEADERONLY, nVersion, ser_action);) bool Check(uint256 hashAuxBlock
A transaction with a merkle branch linking it to the block chain.