web3.py function get_block tranactions is not in the current block
web3.py function get_block tranactions is not in the current block Question: I want to synchronize all transactions with the database, so I use get_ Block method. The code is as follows: cur_block_num = web3.eth.get_block_number() if cur_block_num <= last_block_num: return res = web3.eth.get_block(cur_block_num, full_transactions=True) block_info = json.loads(web3.toJSON(res)) block_info = convert_numeric_to_str(block_info) transactions = block_info.pop(‘transactions’) db["block_info"].insert_one(block_info) but When …