X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fkernel.h;h=5cfa9466b79d3fe0255ad626f1a9f8f10992d087;hb=9958f531a04f41133dfb10ff14c1422164ec1080;hp=a0632f9e5e91edd1fd28d77bd4b041673d1b10ca;hpb=ca78b9e6a859e32fbe36e7afb12c9c9403e8a5b0;p=novacoin.git diff --git a/src/kernel.h b/src/kernel.h index a0632f9..5cfa946 100644 --- a/src/kernel.h +++ b/src/kernel.h @@ -11,7 +11,7 @@ extern unsigned int nModifierUpgradeTime; // MODIFIER_INTERVAL: time to elapse before new modifier is computed -extern unsigned int nModifierInterval; +extern const unsigned int nModifierInterval; extern bool fCoinsDataActual; @@ -42,11 +42,11 @@ typedef struct KernelSearchSettings { unsigned int nSearchInterval; // Number of seconds allowed to go into the past } KernelSearchSettings; -typedef set > CoinsSet; +typedef std::set > CoinsSet; // Preloaded coins metadata // txid => ((txindex, (tx, vout.n)), (block, modifier)) -typedef map >, pair > > MetaMap; +typedef std::map, std::pair >, std::pair > > MetaMap; // Scan given coins set for kernel solution bool ScanForStakeKernelHash(MetaMap &mapMeta, KernelSearchSettings &settings, CoinsSet::value_type &kernelcoin, unsigned int &nTimeTx, unsigned int &nBlockTime);