Fix Qsend spend of Qsend
This commit is contained in:
@@ -3463,9 +3463,9 @@ bool dilithium_Qvalidate(struct CCcontract_info *cp,int32_t height,Eval *eval,co
|
||||
{
|
||||
if ( dilithium_Qsendopretdecode(tmptxid,tmpsig,voutpubtxids,vintx.vout[numvouts-1].scriptPubKey) != 'Q' )
|
||||
return eval->Invalid("couldnt decode destpubtxid from Qsend");
|
||||
else if ( vintx.vin[i].prevout.n > voutpubtxids.size() )
|
||||
else if ( tx.vin[i].prevout.n > voutpubtxids.size() )
|
||||
return eval->Invalid("no destpubtxid for prevout.n");
|
||||
destpubtxid = voutpubtxids[vintx.vin[i].prevout.n];
|
||||
destpubtxid = voutpubtxids[tx.vin[i].prevout.n];
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -716,7 +716,7 @@ int32_t rogue_sendrawtransaction(char *rawtx)
|
||||
sprintf(params,"[\"%s\"]",rawtx);
|
||||
if ( (retstr= komodo_issuemethod(USERPASS,"sendrawtransaction",params,ROGUE_PORT)) != 0 )
|
||||
{
|
||||
if ( 0 )
|
||||
if ( 0 ) // causes 4th level crash
|
||||
{
|
||||
static FILE *fp;
|
||||
if ( fp == 0 )
|
||||
|
||||
Reference in New Issue
Block a user