Questions tagged [blockchain-fork]

Regarding to splitting of the Ethereum Blockchain

Filter by
Sorted by
Tagged with
1
vote
0answers
12 views

How a full node knows which chain to follow?

After Istanbul fork, my full node followed the longest chain which has: Longest Chain Highest TotalDifficulty It seems that the shorter chain of the core-dev closing the gap - total difficulty ...
1
vote
0answers
20 views

How a contract on Ropsten (deployed after fork) emit 3/5 events on the shorter chain while same contract on longer chain emits 5/5 of the events

General info: We have a full-node, which broadcast our txs. We have a EventSource contract which contains 5 events types. The eventSource contract deployed only after Istanbul fork. Our node was ...
1
vote
0answers
14 views

How to forcibly switch Geth to follow other chain and not the largest?

During the previous fork on Ropstan, my node seems to follow to the wrong chain if I understood correctly. As for now, it's on 6537730, it's the longest but major players are around 6523511. What are ...
1
vote
1answer
25 views

“Fork choice rule” : A general term? or a specific algorithm?

Is "Fork choice rule" a general term including all the algorithms used for choosing a branch among other branches in a fork (including longest chain rule etc) ? Or is it a specific algorithm designed ...
1
vote
1answer
46 views

Can we change the Consensus of Ethereum after cloning from github

If we clone ethereum from Github can we change its consensus like other parameters Gas ,blocksize. like if we dnt want to build Blockchain from scratch is there any way to change the consensus ...
0
votes
0answers
55 views

How dapp owners pay for their clients transcaction fees in the Ethereum Blockchain?

I am currently dealing with a problem in Ethereum Blockchain. I wrote a smart contract in Solidity Language, about a site that someone can make his Registration and after the transaction is completed ...
0
votes
1answer
43 views

Is it possible to get duplicates of the log events on Ethereum when we have a fork of the chain?

Let's suppose we have 2 chains of ethereum blockchain. When I fetching contract's log events from x block to getBlockNumber(). Will i get two or one the same log events from each block? Or ...
1
vote
0answers
91 views

Why is my geth node stuck on block 7130891?

My geth mainnet node (version 1.8.21) has stopped on block 7130891. Interestingly, eth.syncing returns false and eth.blockNumber constantly returns 7130891. It was working up until ~24 hours ago. ...
0
votes
1answer
32 views

Ethereum Smart Contract with Custom Fee and Percentage of the collected Fee Distrusted token holder

I wanted to know is there a possibility to create a smart contract for a token wherein the transaction fee could be overridden with the network fee and the fee collected on the transaction can be ...
0
votes
2answers
66 views

How can I (efficiently) programatically see if I am on an ETH or ETC chain?

if i have 2 nodes, one ETH and one ETC, and I am writing a program to use these nodes, how can i determine which node I am using at any given time? the best i can come up with is to check a known ...
0
votes
1answer
90 views

What is the change in smart contract when the 'chain reorganizations'?

Recently I learned about 'chain reorganization'. What is the change in smart contract when the 'chain reorganizations'? for example, contract Contract{ event LOG_Increase(); uint sum = 0; ...
1
vote
1answer
72 views

How to migrate ethereum based crypto currency to other (possibly own) blockchain?

I've read on certain occasions that some crypto currencies first started off on top of one blockchain and then at some point were migrated to a different or own ecosystem. How does this process work, ...
2
votes
1answer
78 views

Prevent other mining softwares to mine my public forked Ethereum chain

I forked an Ethereum chain and put it as public, but I only want my own software/client to be able to mine. Other miners using ethminer, geth, etc, cannot mine and profit from my chain (At least not ...
0
votes
1answer
152 views

I need some clarification about cloning Ethereum

I would like, just for learning purpose how to create a new crypto by cloning the Ethereum. I know how to make a clone of BTC and LTC, basically with that chains is enough modify some strings (such ...
1
vote
0answers
133 views

Fork Crypto from go-ethereum (geth)

I have clone the source code of go-ethereum from github and i want to modify it so i can get owner crypto. Step 1: go run mkalloc.go genesis.json from go-ethereum/core it gen hex for ...
0
votes
1answer
125 views

Why does a permanent chain split occur only in a Hard Fork?

Have read a number of articles on what hard fork and soft fork actually are. But couldn't really get the essence of it. My understanding is Hard Fork brings a change in the core Blockchain code (...
2
votes
1answer
1k views

How can I create a new public blockchain cloned from Ethereum?

Basically I know how to create a private blockchain, or Testnet, But how would you go about creating a complete fork of Ethereum, while changing the name of Ethereum to something custom ? For ...
1
vote
1answer
197 views

Is it possible to rollback or fork a smart contract at a specific transaction?

Let's say I want to keep all the data stored in my contract only up to a specific transaction. Is there any type of rollback process or forking mechanism for smart contracts that will allow me to ...
0
votes
0answers
206 views

Ropsten testnet connecting to fork before ropsten revival [duplicate]

I was syncing ropsten testnet using geth. Command used- geth --testnet --syncmode "full" At some time, eth.syncing returned- { currentBlock: 353883, highestBlock: 1172714, knownStates: 0, ...
0
votes
1answer
37 views

Is it possible to artificially make the blockchain fork while multiple miners are mining? [duplicate]

I want to artificially make the blockchain fork, so that some blocks are invalidated. This is for testing purpose. Does anyone have clues on how to do this?
4
votes
1answer
896 views

What does “⑂ block became a side fork” mean in Geth?

Two Geth nodes were mining in the same private net, and one of them gave ⑂ block became a side fork. I don't get what it means. I'm new in Ethereum. I'd appreciate it if you give me an explanation ...
2
votes
1answer
517 views

Hypothetical: What if ETH miners remove difficulty bomb and continue using PoW?

I am not advocating this! I am simply wondering what would happen if a bunch of ETH miners decided to remove the difficulty bomb in their clients and continue on as though everything was the same. I ...
5
votes
2answers
706 views

Cold Storage after a Hard Fork?

If you create a cold storage account, by following the method described here for example: How to send ether to a cold storage account? And subsequently, a hard fork takes place on the Ethereum ...
1
vote
0answers
267 views

private Ethereum Network Uncle Mining: blockchain forked from a node even that node still connected to the network

I have a private Ethereum Network. It was working without any problems when I had a single miner. But when number of miners increase, I am faced with the following problem: The way I have started my ...
2
votes
0answers
506 views

In parity, how can I delete the last blocks I downloaded without corrupting the database?

I have found the blockchain data in parity. I go to overlayrecent folder and from there to the db folder. It looks like the blocks are the .sst files. How can I delete the last blocks I downloaded ...
3
votes
0answers
73 views

How did the “state clearing” transactions run Out of Gas?

"Failing to revert empty account deletions when the transaction causing the deletions of empty accounts ended with an out-of-gas exception" caused issues with consensus on November 24 2016. Usually, ...
4
votes
2answers
147 views

Upgrading geth after EIP150 Hardfork

Due to the recent EIP150 Hardfork in Ethereum my Geth node needed an upgrade from v1.4.10 to v1.4.18: cd ethereum wget "https://github.com/ethereum/go-ethereum/releases/download/v1.4.18/geth-linux-...
1
vote
0answers
44 views

A terse description of the theDAO hardfork

As I understand it, at block 1920000 the blockchain was forked and there are now two blockchain strands; ETH (hard-forked) or ETC (non-hard-forked) blockchain. This is known as "the DAO hardfork". ...
2
votes
1answer
618 views

Interpreting the messages recieved during synchronisation on geth

I'm presently synchronising to the Ethereum blockchain using geth. I'm seeing two types of message and have a bit of an understanding gap in what they mean. The messages are shown below, with my ...
3
votes
0answers
158 views

How can i detect the blockchain fork event?

How should I handle blockchain forks in my DApp? In this question, a module named reflux-tx is introduced, which can help to trace the transaction state and watch for the blockchain fork event. But ...
6
votes
2answers
8k views

How to fork my own version of ETH?

I would like to understand the basics of Ethereum and i would like to clone it and make my own local currency based on Ethereum to experiment at most its capabilities. Is there anyone that can give me ...
31
votes
4answers
4k views

How can a DApp detect a fork or chain reorganization using web3.js or additional libraries?

Take an example of a voting DApp. A user clicks on a vote button, then behind the scenes a transaction gets mined on the blockchain, and finally the DApp tells the user their vote has been recorded. ...
16
votes
1answer
1k views

How should I handle blockchain forks in my DApp?

In the user interface of my DApp, how can I detect that a blockchain reorganization happened and what should I do to update the UI state once the fork is resolved?