text: #!/usr/bin/env python3
  # Copyright (c) 2018 The Bethel Core developers
  # Distributed under the MIT software license, see the accompanying
  # file COPYING or http://www.opensource.org/licenses/mit-license.php.
  
  from test_framework.test_framework import BethelTestFramework
  from test_framework.staticr_util import *
  
  import time
  
  class StaticRAmountTest(BethelTestFramework):
      """Tests the staking amount after softfork activation."""
  
      def __init__(self):
          super().__init__()
          self.setup_clean_chain = True
          self.num_nodes = 1
  
      def setup_network(self, split=False):
          self.nodes = self.setup_nodes()
          self.is_network_split = split
  
      def run_test(self):
  
          #check the block reward is 2 BTEL after the softfork
  
          activate_staticr(self.nodes[0])
  
          blockcount = self.nodes[0].getblockcount()
          wallet_info1 = self.nodes[0].getwalletinfo()
  
          # wait for a new block to be mined
          while self.nodes[0].getblockcount() == blockcount:
              print("waiting for a new block...")
              time.sleep(5)
  
          assert(blockcount != self.nodes[0].getblockcount())
  
          wallet_info2 = self.nodes[0].getwalletinfo()
          balance_diff = wallet_info1['balance'] - wallet_info2['balance']
  
          # check that only 2 new BTEL were created
          assert(wallet_info2['immature_balance'] == wallet_info1['immature_balance'] + balance_diff + 2)
  
  if __name__ == '__main__':
      StaticRAmountTest().main()
  