File tree Expand file tree Collapse file tree
src/main/java/org/tron/core/db Expand file tree Collapse file tree Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments