Browse Source

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

pull/4/head
jl777 8 years ago
parent
commit
26ac06c4f5
  1. 2
      src/komodo.h
  2. 2
      src/komodo_gateway.h

2
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 <stdint.h>

2
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

Loading…
Cancel
Save