getamis / go-ethereum

Official Go implementation of the Ethereum protocol
https://geth.ethereum.org
GNU Lesser General Public License v3.0
34 stars 12 forks source link

Can votes be casted from API ? #153

Closed tamalsen closed 6 years ago

tamalsen commented 6 years ago

Geth version: geth version: 1.7.2

OS & Version: Windows/Linux/OSX: Linux

I have just started tinkering with blockchain and found this really awesome library. I have a very basic confusion about using various consensus algorithms. Can the votes be casted through API and delay creating a block until a threshold (lets say n/2 + 1) is reached. If so, how can I do that while using Istanbul BFT on Quorum?

markya0616 commented 6 years ago

Yes, we provided vote RPC API. Please refer https://github.com/getamis/go-ethereum/wiki/RPC-API .

tamalsen commented 6 years ago

Sorry I might be completely dumb, but I can't find any api called 'vote'. Can you please elaborate how to do it ?

Just to reiterate, I want to delay creating a BLOCK until a threshold (lets say n/2 + 1) of votes are reached. Is that at all possible ?

markya0616 commented 6 years ago

No, you can't delay creating a block. If you want to vote someone in, you can use https://github.com/getamis/go-ethereum/wiki/RPC-API#istanbulpropose.

tamalsen commented 6 years ago

Thanks a lot @markya0616