File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ public PrintBlockchainCommand() {
28
28
29
29
@ Override
30
30
public void execute (Peer peer , String [] parameters ) {
31
- Blockchain blockchian = peer .getUTXOSet ().getBlockchain ();
32
- BlockchainIterator bi = new BlockchainIterator (blockchian );
31
+ Blockchain blockchain = peer .getUTXOSet ().getBlockchain ();
32
+ BlockchainIterator bi = new BlockchainIterator (blockchain );
33
33
while (bi .hasNext ()) {
34
34
TronBlock .Block block = (TronBlock .Block ) bi .next ();
35
35
System .out .println (BlockUtils .toPrintString (block ));
Original file line number Diff line number Diff line change 23
23
import org .tron .core .TransactionUtils ;
24
24
import org .tron .core .UTXOSet ;
25
25
import org .tron .crypto .ECKey ;
26
- import org .tron .example .Tron ;
27
26
import org .tron .protos .core .TronBlock ;
28
27
import org .tron .protos .core .TronTransaction ;
29
28
import org .tron .utils .ByteArray ;
@@ -88,7 +87,7 @@ public static Peer getInstance(String type) {
88
87
89
88
private void init () {
90
89
initWallet ();
91
- initBlockchian ();
90
+ initBlockchain ();
92
91
initUTXOSet ();
93
92
initLoadBlock ();
94
93
}
@@ -100,7 +99,7 @@ private void initLoadBlock(){
100
99
}
101
100
}
102
101
103
- private void initBlockchian () {
102
+ private void initBlockchain () {
104
103
new ConsensusCommand ().server ();
105
104
if (Blockchain .dbExists ()) {
106
105
blockchain = new Blockchain ();
You can’t perform that action at this time.
0 commit comments