When I try to index and create an array from all the block hashes in the blockchain, I keep getting the following error:
“(WinError 10048) Typically, each socket address (protocol/network address/port) can only be used once.”
block_counter = 0
total_blocks = rpc_connection.getblockcount()
while block_counter < total_blocks:
block_hash = rpc_connection.getblockhash(total_blocks)
blockHashArray = np.append(blockHashArray, block_hash)
Are transactions coming from my node causing this error? So how can we solve this problem?