Merge pull request #1319 from jl777/jl777

bug fixes
This commit is contained in:
jl777
2019-03-07 07:39:26 -11:00
committed by GitHub
4 changed files with 2415 additions and 3 deletions

View File

@@ -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
{

2
src/cc/maketetris Executable file
View File

@@ -0,0 +1,2 @@
gcc -O3 -std=c++11 -I../secp256k1/include -I../univalue/include -I../cryptoconditions/include -I../cryptoconditions/src -I../cryptoconditions/src/asn -I.. -I. -DSTANDALONE tetris.cpp -lncurses -o tetris

View File

@@ -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 )

2410
src/cc/tetris.cpp Normal file

File diff suppressed because it is too large Load Diff