Always full validation
This commit is contained in:
@@ -20,7 +20,6 @@
|
|||||||
|
|
||||||
// interest calculations are currently just using what is returned, it should calculate it from scratch
|
// interest calculations are currently just using what is returned, it should calculate it from scratch
|
||||||
|
|
||||||
// bruteforce sig -> NN pubkey validator
|
|
||||||
// CC signing
|
// CC signing
|
||||||
// make sure to sanity check all vector lengths on receipt
|
// make sure to sanity check all vector lengths on receipt
|
||||||
// make sure no files are updated (this is to allow nSPV=1 and later nSPV=0 without affecting database)
|
// make sure no files are updated (this is to allow nSPV=1 and later nSPV=0 without affecting database)
|
||||||
@@ -28,7 +27,6 @@
|
|||||||
#ifndef KOMODO_NSPV_H
|
#ifndef KOMODO_NSPV_H
|
||||||
#define KOMODO_NSPV_H
|
#define KOMODO_NSPV_H
|
||||||
|
|
||||||
#define NSPV_SKIPFULLVALIDATION 0 // changing to 0 issues 26 remote gettx, per utxo! need local bruteforcer
|
|
||||||
#define NSPV_POLLITERS 10
|
#define NSPV_POLLITERS 10
|
||||||
#define NSPV_POLLMICROS 100777
|
#define NSPV_POLLMICROS 100777
|
||||||
#define NSPV_MAXVINS 64
|
#define NSPV_MAXVINS 64
|
||||||
|
|||||||
@@ -165,7 +165,7 @@ std::string NSPV_signtx(UniValue &retcodes,CMutableTransaction &mtx,uint64_t txf
|
|||||||
utxovout = mtx.vin[i].prevout.n;
|
utxovout = mtx.vin[i].prevout.n;
|
||||||
if ( i > 0 )
|
if ( i > 0 )
|
||||||
sleep(1);
|
sleep(1);
|
||||||
validation = NSPV_gettransaction(NSPV_SKIPFULLVALIDATION,utxovout,mtx.vin[i].prevout.hash,used[i].height,vintx);
|
validation = NSPV_gettransaction(0,utxovout,mtx.vin[i].prevout.hash,used[i].height,vintx);
|
||||||
retcodes.push_back(validation);
|
retcodes.push_back(validation);
|
||||||
if ( validation != -1 ) // most others are degraded security
|
if ( validation != -1 ) // most others are degraded security
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user