(storageMgr *ethstorage.StorageManager, shards []uint64)
| 230 | } |
| 231 | |
| 232 | func 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 | |
| 244 | func getPayment(l1Client *eth.PollingClient, contract common.Address, batch uint64) (*big.Int, error) { |
| 245 | uint256Type, _ := abi.NewType("uint256", "", nil) |
no test coverage detected