need to delay issuing fiat chain coins so it will have the deposit event in time and not reject

This commit is contained in:
jl777
2017-01-01 15:40:42 +02:00
parent e62f71143a
commit 26ac06c4f5
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@
// a. automate notarization fee payouts
// b. automated distribution of test REVS snapshot
//#define KOMODO_ASSETCHAINS_WAITNOTARIZE
#define KOMODO_ASSETCHAINS_WAITNOTARIZE
#define KOMODO_PAXMAX (10000 * COIN)
#include <stdint.h>

View File

@@ -476,7 +476,7 @@ int32_t komodo_gateway_deposits(CMutableTransaction *txNew,char *base,int32_t to
{
{
#ifdef KOMODO_ASSETCHAINS_WAITNOTARIZE
if ( kmdsp != 0 && kmdsp->NOTARIZED_HEIGHT >= pax->height ) // assumes same chain as notarize
if ( kmdsp != 0 && (kmdsp->NOTARIZED_HEIGHT >= pax->height || kmdsp->CURRENT_HEIGHT > pax->height+30) ) // assumes same chain as notarize
pax->validated = pax->komodoshis; //kmdsp->NOTARIZED_HEIGHT;
else pax->validated = pax->ready = 0;
#endif