multiple socket address usage error - using rpc to index block hashes

When I am attempting to index and create an array out of all the blockhashes on the blockchain I keep getting this error:

"[WinError 10048] Only one usage of each socket address (protocol/network address/port) is normally permitted"

        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)

Am I getting this error due to an incoming transaction on my node? If so, how can I get around this issue?



from Recent Questions - Bitcoin Stack Exchange https://ift.tt/b0ymBGL
via IFTTT

Popular posts from this blog

Bitcoin Mining Could Be Strengthening The Ruble, Russian Central Bank Says

Crypto Exec Warns Tokenization Is Moving Faster Than Expected

Bitwise Clients Pour $69M Into Solana as Bulls Fight to Reclaim $200 Resistance Zone