From 26ac06c4f5a6b4dc3163b36a1e5d24bfa7eccbd2 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 1 Jan 2017 15:40:42 +0200 Subject: [PATCH] need to delay issuing fiat chain coins so it will have the deposit event in time and not reject --- src/komodo.h | 2 +- src/komodo_gateway.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/komodo.h b/src/komodo.h index 8e84a6e02..207e38808 100644 --- a/src/komodo.h +++ b/src/komodo.h @@ -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 diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index ea3481aae..b944f861e 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -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