Exemplo n.º 1
0
 def increase_txn_count(db, state_code, last_count: int, addr: bytes):
     # FIXME: This should be transactional
     db.put(state_code + b'txn_count_' + addr, last_count + 1)
Exemplo n.º 2
0
 def update_state_version(db, state_code, block_number, batch):
     db.put(state_code + b'state_version', block_number, batch)