make function, so IS notaty can update on era change

This commit is contained in:
blackjok3r
2018-11-03 20:42:59 +08:00
parent 152d34f3a4
commit 16b97d7f22
3 changed files with 20 additions and 9 deletions

View File

@@ -706,13 +706,7 @@ void komodo_init(int32_t height)
pubkey2addr((char *)Raddress,(uint8_t *)pubkey33);
CBitcoinAddress address(Raddress);
NOTARY_ADDRESS = address.ToString();
std::string notaryname;
if (StakedNotaryID(notaryname, Raddress) != -1 ) {
IS_STAKED_NOTARY = 1;
IS_KOMODO_NOTARY = 0;
} else {
IS_STAKED_NOTARY = 0;
}
updateStakedNotary();
#endif
if ( height >= 0 )
{