def modify_mempool(mempool, remove=<NUM_LIT:0>, add=<NUM_LIT:0>, verbose=False):
for i in range(remove):<EOL><INDENT>popped = mempool.pop()<EOL>if verbose: print("<STR_LIT>", popped)<EOL><DEDENT>for i in range(add):<EOL><INDENT>new_txid = _make_txid()<EOL>mempool.append(new_txid)<EOL>if verbose: print("<STR_LIT>", new_txid)<EOL><DEDENT>return mempool<EOL>
Given a list of txids (mempool), add and remove some items to simulate
an out of sync mempool.