Skip to content

Conversation

@karalabe
Copy link
Member

@karalabe karalabe commented Apr 2, 2019

The eth.coinbase JavaScript property can return an error (throw in JS) if there are no accounts present. This PR handles that throw in the console welcome message. The same is done for admin.datadir if the admin namespace is not exposed.

In addition, the PR also reworks the printout so the welcome message is constructed first and only afterwards printed to avoid log messages getting intermingled with console printout.

@kurkomisi
Copy link
Contributor

LGTM, Thanks! :)

@karalabe karalabe merged commit 88d7119 into ethereum:master Apr 2, 2019
gzliudan added a commit to gzliudan/XDPoSChain that referenced this pull request Apr 22, 2025
gzliudan added a commit to XinFinOrg/XDPoSChain that referenced this pull request Apr 24, 2025
* rpc: implement full bi-directional communication ethereum#18471

* console: handle eth.coinbase throws ethereum#19374

* rpc: remove extra debug log message

* rpc: add go:build lines ethereum#23468
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants