Skip to content
This repository has been archived by the owner on Sep 14, 2024. It is now read-only.

Commit

Permalink
Revert "Update blocks.js"
Browse files Browse the repository at this point in the history
This reverts commit 1c2bee1.
  • Loading branch information
Dennis committed Sep 5, 2024
1 parent 3093c5a commit a731b9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/blocks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit a731b9a

Please sign in to comment.