From 2f34e2a8c98150b38758d948a327d80759d997be Mon Sep 17 00:00:00 2001 From: Zachary Belford Date: Wed, 26 Jun 2019 14:20:16 -0700 Subject: [PATCH 1/2] ECIP-69769: Submit Block RPC --- ECIPs/ECIP-69769.md | 57 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 ECIPs/ECIP-69769.md diff --git a/ECIPs/ECIP-69769.md b/ECIPs/ECIP-69769.md new file mode 100644 index 0000000..f86b94a --- /dev/null +++ b/ECIPs/ECIP-69769.md @@ -0,0 +1,57 @@ +### Title + + ECIP: 69769 + Title: Submit Block RPC + Author: Zachary Belford, zachary.b@etclabs.org + Discussions-To: Community Discord #ecips + Status: Draft + Type: Standards Track + Created: 2019-06-26 + +### Abstract + +Add an RPC method to submit a new block, instead of having to use submitWork. + +### Motivation + +I would like to be able to submitWork, but have the address used be one other than the etherbase of the node the work is being submitted by. + +### Specification + +```json +{ + "openrpc": "1.1.8", + "info": { + "version": "1.0.0", + "title": "Example submitBlock" + }, + "methods": [ + { + "name": "eth_submitBlock", + "summary": "Submit a new block proposal", + "description": "Given a new block, it will validate the block, and broadcast it to connected peers.", + "params": [ + { "$ref": "https://raw.githubusercontent.com/etclabscore/ethereum-json-rpc-specification/master/openrpc.json#/components/contentDescriptors/Block" } + ], + "result": { + "name": "isBlockAccepted", + "schema": { + "type": "boolean" + } + } + } + ] +} +``` + +### Rationale + +This removes the dependency for miners to have a geth node with accounts that need to be unlocked. Miners would be able to better isolate their private keys from the world, yeilding better security potential. + +### Implementation + +I think it's pretty straight forward. Looking at the above specification, we would be adding a eth_submitBlock rpc method. It's similar to eth_submitWork, except with fewer steps before broadcasting the block. + + + +**NOTE: I am extremely open to suggestions for this. Please be liberal in your feedback. Thank you.** From 361a534a95d7a9eaa6dd14a3afc493ac72eb23cc Mon Sep 17 00:00:00 2001 From: Zachary Belford Date: Fri, 28 Jun 2019 09:22:09 -0700 Subject: [PATCH 2/2] fix: update ecip number Co-Authored-By: Talha Cross <47772477+soc1c@users.noreply.github.com> --- ECIPs/ECIP-69769.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ECIPs/ECIP-69769.md b/ECIPs/ECIP-69769.md index f86b94a..57d8698 100644 --- a/ECIPs/ECIP-69769.md +++ b/ECIPs/ECIP-69769.md @@ -1,6 +1,6 @@ ### Title - ECIP: 69769 + ECIP: 1062 Title: Submit Block RPC Author: Zachary Belford, zachary.b@etclabs.org Discussions-To: Community Discord #ecips