()
| 83 | } |
| 84 | |
| 85 | func (lc *LedgerCommitter) GetCurrentBlockHash() ([]byte, error) { |
| 86 | info, err := lc.GetBlockchainInfo() |
| 87 | if err != nil { |
| 88 | logger.Errorf("Cannot get blockchain info, %s", info) |
| 89 | return nil, err |
| 90 | } |
| 91 | |
| 92 | return info.CurrentBlockHash, nil |
| 93 | } |
| 94 | |
| 95 | // DoesPvtDataInfoExistInLedger returns true if the ledger has pvtdata info |
| 96 | // about a given block number. |
nothing calls this directly
no test coverage detected