make function, so IS notaty can update on era change
This commit is contained in:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user