Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [blockchain-fork]

Regarding to splitting of the Ethereum Blockchain

0
votes
2answers
42 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
20 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
40 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, ...
1
vote
1answer
48 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
58 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
90 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
86 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 (...
0
votes
0answers
92 views

what is the chain selection rule used in Ethereum? Longest or Heaviest? [duplicate]

I know Ethereum allows two uncles to be included in a block and uncles must be within the 7th generation. However, i am not really sure how Ethereum decides on forks? is it the same as Bitcoin using ...
0
votes
0answers
27 views

About Geth miningLogAtDepth

I created a Clique blockchain with 10 Geth nodes. They use to fork sometime and fork finally become a side fork after 5 blocks. Which is configured in the const value miningLogAtDepth = 5 in worker....
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
140 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
189 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
31 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
771 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 ...
3
votes
1answer
507 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
574 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
228 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
451 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
69 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
142 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
42 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
596 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
130 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 ...
5
votes
1answer
7k 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 ...
24
votes
4answers
3k 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. ...
15
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?