RNode returns current RNode information
()
| 250 | |
| 251 | // RNode returns current RNode information |
| 252 | func (b *APIBackend) RNode() ([]common.Address, uint64) { |
| 253 | block := b.cpc.blockchain.CurrentBlock() |
| 254 | bn := block.Number() |
| 255 | api := b.cpc.engine.(*dpor.Dpor).APIs(b.cpc.blockchain) |
| 256 | rNodes, _ := api[0].Service.(*dpor.API).GetRNodes() |
| 257 | return rNodes, bn.Uint64() |
| 258 | } |
| 259 | |
| 260 | // CurrentProposerIndex return current proposer index, (0,1,...,11) |
| 261 | func (b *APIBackend) CurrentProposerIndex() uint64 { |
nothing calls this directly
no test coverage detected