diff --git a/app/object-storage/object-storage.go b/app/object-storage/object-storage.go index b5aa21fb2603c0d1aa88c051417a20646334b088..af30bd0b73fc21cc36a06c236b4f4cee00cda800 100644 --- a/app/object-storage/object-storage.go +++ b/app/object-storage/object-storage.go @@ -284,3 +284,13 @@ func TestObjectStorage() { log.Fatalf("Failure: %+v", err) } } + +func IsTransactionInDatabase(objectStorage Blob, trans Transaction) bool { + db := ReadDatabaseFromBlobStorage(objectStorage) + for _, t := range db { + if t.Id == trans.Id { + return true + } + } + return false +}