commit method Null safety
- BlockModel block,
- {Uint8List? xchain}
Persists the block into db
.
This method should be called only after all the transactions are committed.
Implementation
void commit(BlockModel block, {Uint8List? xchain}) =>
_repository.save(block, xchain: xchain);