commit 9da3bad92dc36d04333f2e336a20dd2ba5584592
parent fae92e66e93ffd78a86ff7644bff032c75e68bab
Author: Shivakumar <[email protected]>
Date: Sat, 30 May 2026 16:21:04 +0530
feat(storage): add LashHash() function for better api
Signed-off-by: Shivakumar <[email protected]>
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/internal/storage/store.go b/internal/storage/store.go
@@ -55,3 +55,8 @@ func TxKey(txID []byte) []byte {
func BatchKey(batchID string) []byte {
return append([]byte(PrefixBatch), []byte(batchID)...)
}
+
+// LastHash returns the database key for the last block hash.
+func LastHash() []byte {
+ return []byte(LastHashKey)
+}