quorum icon indicating copy to clipboard operation
quorum copied to clipboard

coinbase & accounts 0 are diiferent when trying to setup istanbul network

Open abhayar opened this issue 8 years ago • 11 comments

System information

Geth version: geth version

OS & Version: Windows/Linux/OSX

Branch, Commit Hash or Release: git status

Expected behaviour

Actual behaviour

Steps to reproduce the behaviour

Backtrace

[backtrace]

abhayar avatar Jan 20 '18 18:01 abhayar

I'm using istanbul tools only for extradata creation, but problem i'm facing problem with accounts..coinbase & account0 both are different.This is my genesis file:

{ "config": { "chainId": 1234, "homesteadBlock": 1, "eip150Block": 2, "eip150Hash": "0x0000000000000000000000000000000000000000000000000000000000000000", "eip155Block": 3, "eip158Block": 3, "istanbul": { "epoch": 30000, "policy": 0 }, "isQuorum": true }, "alloc": {}, "nonce": "0x0", "timestamp": "0x5982d805", "extraData": "0x0000000000000000000000000000000000000000000000000000000000000000f86fea941cd6d479eda90f876366c32a7932eaf7116aa39394294fc7e8f22b3bcdcf955dd7ff3ba2ed833f8212b8410000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c0", "gasLimit": "0x47b760", "difficulty": "0x1", "mixHash": "0x63746963616c2062797a616e74696e65206661756c7420746f6c6572616e6365", "number": "0x0", "gasUsed": "0x0", "parentHash": "0x0000000000000000000000000000000000000000000000000000000000000000" }

when i remove "istanbul": {"epoch": 30000,"policy": 0 } from genesis file , coinbase & accounts0 both are same, but it is no more istanbul protocol

abhayar avatar Jan 21 '18 05:01 abhayar

@yutelin @markya0616 thoughts?

patrickmn avatar Feb 06 '18 21:02 patrickmn

@abhayar coinbase address has been repurposed for validator voting. Please refer to EIP 650 Block header section.

  • beneficiary: Address to propose modifying the list of validator with.
    • Should be filled with zeroes normally, modified only while voting.
    • Arbitrary values are permitted nonetheless (even meaningless ones such as voting out non validators) to avoid extra complexity in voting mechanics implementation.

yutelin avatar Feb 07 '18 02:02 yutelin

ERROR[02-11|06:28:21] Failed to decode message from payload address=0x2D7fa275D93006d80B07f03Cd678E84eA2CB57A5 err="unauthorized address"...getting this error, this is coinbase address

abhayar avatar Feb 11 '18 07:02 abhayar

@abhayar Have you solved the issue ERROR[02-11|06:28:21] Failed to decode message from payload address=0x2D7fa275D93006d80B07f03Cd678E84eA2CB57A5 err="unauthorized address"...getting this error, this is coinbase address

ijazm avatar Mar 06 '18 19:03 ijazm

No, not yet..any solution on this...? So to create extradata, we are using istanbul-tools, so because of this, tools itself create coinbase account & I'm also creating new account..Is this so..?

abhayar avatar Mar 07 '18 05:03 abhayar

@abhayar yes, exactly that is the problem. What I did to overcome this problem is I created the nodekey and genesis file using the istanbul tool. I used that nodekey on all the nodes i have and finally my manual setup was successful and I am able to deploy contracts

ijazm avatar Mar 07 '18 17:03 ijazm

➤ Patrick Mylund Nielsen commented:

yutelin markya0616 thoughts?

Krish1979 avatar May 21 '19 17:05 Krish1979

@Krish1979 facing same account issue..?

abhayar avatar May 22 '19 10:05 abhayar

@abhayar yes, exactly that is the problem. What I did to overcome this problem is I created the nodekey and genesis file using the istanbul tool. I used that nodekey on all the nodes i have and finally my manual setup was successful and I am able to deploy contracts

please provide some more information on this i m facing same error

AUQIB92 avatar Jul 17 '19 12:07 AUQIB92

@AUQIB92 Hi , Yeah I solved the problem in similar way before.

abhayar avatar Jul 18 '19 08:07 abhayar