Skip to content

Commit 3fb47d9

Browse files
committed
fix: remove desp.
1 parent fc85aed commit 3fb47d9

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/main/java/org/tron/core/db/Manager.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,20 +153,19 @@ public BlockCapsule getHead() {
153153
}
154154
}
155155

156-
@Deprecated
156+
157157
public BlockId getHeadBlockId() {
158158
return new BlockId(getDynamicPropertiesStore().getLatestBlockHeaderHash(),
159159
getDynamicPropertiesStore().getLatestBlockHeaderNumber());
160160

161-
//return Sha256Hash.wrap(this.dynamicPropertiesStore.getLatestBlockHeaderHash());
162161
}
163162

164-
@Deprecated
163+
165164
public long getHeadBlockNum() {
166165
return getDynamicPropertiesStore().getLatestBlockHeaderNumber();
167166
}
168167

169-
@Deprecated
168+
170169
public long getHeadBlockTimeStamp() {
171170
return getDynamicPropertiesStore().getLatestBlockHeaderTimestamp();
172171
}
@@ -231,7 +230,7 @@ public void init() {
231230
this.witnessController.initWits();
232231
this.khaosDb.start(genesisBlock);
233232
}
234-
233+
235234
public BlockId getGenesisBlockId() {
236235
return this.genesisBlock.getBlockId();
237236
}

0 commit comments

Comments
 (0)