Hello! I am trying to get confirmations of bitcoin transaction,it now gets confirmations, but when latest block changes(latest block on blockchain.info, it gets confirmations), till restart of my application(wallet reinitialization on restart), it doesn't change local block height got by wallet.get_local_height() so confirmations doesn't change too. Here is code snippet:
https://pastebin.com/j6msktyZ