MCPcopy Create free account
hub / github.com/ethstorage/es-node / fillEmpty

Function fillEmpty

integration_tests/node_mine_test.go:232–242  ·  view source on GitHub ↗
(storageMgr *ethstorage.StorageManager, shards []uint64)

Source from the content-addressed store, hash-verified

230}
231
232func fillEmpty(storageMgr *ethstorage.StorageManager, shards []uint64) error {
233 start := shards[0] * storageMgr.KvEntries()
234 totalEntries := storageMgr.KvEntries()*uint64(len(shards)) - 1
235 lg.Info("Filling empty to shards", "start", start, "end", start+totalEntries)
236 inserted, next, err := storageMgr.CommitEmptyBlobs(start, start+totalEntries)
237 if err != nil {
238 return err
239 }
240 lg.Info("Filling empty done", "inserted", inserted, "next", next)
241 return nil
242}
243
244func getPayment(l1Client *eth.PollingClient, contract common.Address, batch uint64) (*big.Int, error) {
245 uint256Type, _ := abi.NewType("uint256", "", nil)

Callers 1

TestMiningFunction · 0.70

Calls 2

KvEntriesMethod · 0.65
CommitEmptyBlobsMethod · 0.65

Tested by

no test coverage detected