def run_test(self):
    activate_staticr(self.nodes[0])
    blockcount = self.nodes[0].getblockcount()
    address = self.nodes[0].getnewaddress()
    txid = self.nodes[0].sendtoaddress(address, 100)
    while (self.nodes[0].getblockcount() == blockcount):
        print('waiting for a new block...')
        time.sleep(5)
    transaction = self.nodes[0].gettransaction(txid)
    assert (transaction['confirmations'] > 0)
def run_test(self):
    activate_staticr(self.nodes[0])
    blockcount = self.nodes[0].getblockcount()
    address = self.nodes[0].getnewaddress()
    txid = self.nodes[0].sendtoaddress(address, 100)
    while (self.nodes[0].getblockcount() == blockcount):
        print('waiting for a new block...')
        time.sleep(5)
    transaction = self.nodes[0].gettransaction(txid)
    assert (transaction['confirmations'] > 0)