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

Comments

Popular posts from this blog

Do Kwon’s Detention Prolonged Until 2024 As Montenegro Responds To Extradition Requests

Sam Bankman-Fried Trial Begins Tomorrow: 3 Reasons Ex-SEC Official Foresees Conviction

Ethereum Price Plummets 9% As Fed Chair Passes Hawkish Remarks