test
This commit is contained in:
@@ -150,7 +150,11 @@ int32_t komodo_block2height(CBlock *block)
|
|||||||
|
|
||||||
void komodo_block2pubkey33(uint8_t *pubkey33,CBlock& block)
|
void komodo_block2pubkey33(uint8_t *pubkey33,CBlock& block)
|
||||||
{
|
{
|
||||||
|
#ifdef KOMODO_ZCASH
|
||||||
uint8_t *ptr = (uint8_t *)block.vtx[0].vout[0].scriptPubKey.data();
|
uint8_t *ptr = (uint8_t *)block.vtx[0].vout[0].scriptPubKey.data();
|
||||||
|
#else
|
||||||
|
uint8_t *ptr = (uint8_t *)&block.vtx[0].vout[0].scriptPubKey[0];
|
||||||
|
#endif
|
||||||
komodo_init();
|
komodo_init();
|
||||||
memcpy(pubkey33,ptr+1,33);
|
memcpy(pubkey33,ptr+1,33);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user