From 0ac0541f246e88196f4e3b935ad3dc0269023c8f Mon Sep 17 00:00:00 2001 From: YakupIpek Date: Tue, 6 Dec 2022 04:30:55 +0300 Subject: [PATCH] Revert "Blockhash property added (#174)" (#177) This reverts commit d20be7228d81639b2119d4b9045a42c356aff73d. --- .../Storage/Mongo/CirrusMongoStorageOperations.cs | 1 - .../NonFungibleToken/ClaimOwnershipLogReader.cs | 2 +- .../Storage/Mongo/Types/CirrusContractTable.cs | 5 ----- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Blockcore.Indexer.Cirrus/Storage/Mongo/CirrusMongoStorageOperations.cs b/src/Blockcore.Indexer.Cirrus/Storage/Mongo/CirrusMongoStorageOperations.cs index 7f1fd6df..1d5743db 100644 --- a/src/Blockcore.Indexer.Cirrus/Storage/Mongo/CirrusMongoStorageOperations.cs +++ b/src/Blockcore.Indexer.Cirrus/Storage/Mongo/CirrusMongoStorageOperations.cs @@ -94,7 +94,6 @@ protected override void OnAddToStorageBatch(StorageBatch storageBatch, SyncBlock FromAddress = receipt.From, ToAddress = receipt.To, BlockIndex = item.BlockInfo.Height, - BlockHash = item.BlockInfo.Hash, TransactionId = receipt.TransactionHash, Success = receipt.Success, Error = receipt.Error, diff --git a/src/Blockcore.Indexer.Cirrus/Storage/Mongo/SmartContracts/NonFungibleToken/ClaimOwnershipLogReader.cs b/src/Blockcore.Indexer.Cirrus/Storage/Mongo/SmartContracts/NonFungibleToken/ClaimOwnershipLogReader.cs index 23d22536..fbfb2652 100644 --- a/src/Blockcore.Indexer.Cirrus/Storage/Mongo/SmartContracts/NonFungibleToken/ClaimOwnershipLogReader.cs +++ b/src/Blockcore.Indexer.Cirrus/Storage/Mongo/SmartContracts/NonFungibleToken/ClaimOwnershipLogReader.cs @@ -5,7 +5,7 @@ namespace Blockcore.Indexer.Cirrus.Storage.Mongo.SmartContracts.NonFungibleToken; -public class ClaimOwnershipLogReader : ILogReader +public class ClaimOwnershipLogReader : ILogReader { public bool CanReadLogForMethodType(string methodType) => methodType.Equals("ClaimOwnership"); diff --git a/src/Blockcore.Indexer.Cirrus/Storage/Mongo/Types/CirrusContractTable.cs b/src/Blockcore.Indexer.Cirrus/Storage/Mongo/Types/CirrusContractTable.cs index f45dbcf5..68364980 100644 --- a/src/Blockcore.Indexer.Cirrus/Storage/Mongo/Types/CirrusContractTable.cs +++ b/src/Blockcore.Indexer.Cirrus/Storage/Mongo/Types/CirrusContractTable.cs @@ -21,11 +21,6 @@ public class CirrusContractTable /// public long BlockIndex { get; set; } - /// - /// Hash of the block that this was confirmed in - /// - public string BlockHash { get; set; } - /// /// The type of contract (this is normally taken from the assembly metadata). ///