static void parseInputs( const uint8_t *&p, const uint8_t *txHash ) { if(!skip) startInputs(p); LOAD_VARINT(nbInputs, p); for(uint64_t inputIndex=0; inputIndex<nbInputs; ++inputIndex) parseInput<skip>(p, txHash, inputIndex); if(!skip) endInputs(p); }
static void parseInputs( const Block *block, const uint8_t *&p, const uint8_t *txHash ) { if(!skip) { startInputs(p); } LOAD_VARINT(nbInputs, p); for(uint64_t inputIndex=0; inputIndex<nbInputs; ++inputIndex) { parseInput<skip>(block, p, txHash, inputIndex); } if(!skip) { endInputs(p); } }