Browse Source

Fix error check

warmup
jl777 5 years ago
parent
commit
a5f0729fc1
  1. 2
      src/komodo_nSPV_fullnode.h

2
src/komodo_nSPV_fullnode.h

@ -439,7 +439,7 @@ void komodo_nSPVreq(CNode *pfrom,std::vector<uint8_t> request) // received a req
if ( timestamp > pfrom->prevtimes[ind] )
{
struct NSPV_txproof P; uint256 txid; int32_t height,vout;
if ( len == 1+sizeof(txid)+sizeof(height) )
if ( len == 1+sizeof(txid)+sizeof(height)+sizeof(vout) )
{
iguana_rwnum(0,&request[1],sizeof(height),&height);
iguana_rwnum(0,&request[1+sizeof(height)],sizeof(vout),&vout);

Loading…
Cancel
Save