les, light: verbose errors on state retrieval issues

This commit is contained in:
Péter Szilágyi
2019-03-18 13:19:40 +02:00
parent 54cd3e89a4
commit 211ec46284
2 changed files with 116 additions and 74 deletions

View File

@ -211,9 +211,8 @@ func (lc *LightChain) Genesis() *types.Block {
return lc.genesisBlock
}
// State returns a new mutable state based on the current HEAD block.
func (lc *LightChain) State() (*state.StateDB, error) {
return nil, errors.New("not implemented, needs client/server interface split")
func (lc *LightChain) StateCache() state.Database {
panic("not implemented")
}
// GetBody retrieves a block body (transactions and uncles) from the database