From a731b9ad89841747511ad7ada138fdccbc9a4fb3 Mon Sep 17 00:00:00 2001 From: Dennis Date: Thu, 5 Sep 2024 17:31:54 +0200 Subject: [PATCH] Revert "Update blocks.js" This reverts commit 1c2bee1432bfeb7329f0f063eba9717efb1a6768. --- js/blocks.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/blocks.js b/js/blocks.js index 640570c..0622949 100644 --- a/js/blocks.js +++ b/js/blocks.js @@ -6,10 +6,10 @@ function parseBlockHeightFromURL() { // Function to make RPC call to retrieve current block height async function getCurrentBlockHeight() { - const response = await fetch('173.212.222.226:8078', { + const response = await fetch('https://rpc.nosocoin.com:8078', { method: 'POST', headers: { - 'Origin': '173.212.222.226' + 'Origin': 'https://rpc.nosocoin.com' }, body: JSON.stringify({ "jsonrpc": "2.0", @@ -29,10 +29,10 @@ async function getCurrentBlockHeight() { // Function to fetch block information async function fetchBlockInfo(blockHeight) { - const response = await fetch('173.212.222.226:8078', { + const response = await fetch('https://rpc.nosocoin.com:8078', { method: 'POST', headers: { - 'Origin': '173.212.222.226' + 'Origin': 'https://rpc.nosocoin.com' }, body: JSON.stringify({ "jsonrpc": "2.0",