Skip to content

Commit f743db6

Browse files
committed
Removed unnecessary code
1 parent a0a35dc commit f743db6

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Libplanet/Blockchain/BlockChain.cs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,7 @@ public static BlockChain Create(
427427
store.SetCanonicalChainId(id);
428428

429429
blockChainStates ??= new BlockChainStates(store, stateStore);
430-
431-
var blockChain = new BlockChain(
430+
return new BlockChain(
432431
policy,
433432
stagePolicy,
434433
store,
@@ -438,13 +437,6 @@ public static BlockChain Create(
438437
blockChainStates,
439438
actionEvaluator,
440439
renderers);
441-
442-
if (genesisBlock.ProtocolVersion < BlockMetadata.SlothProtocolVersion)
443-
{
444-
return blockChain;
445-
}
446-
447-
return blockChain;
448440
}
449441

450442
/// <summary>

0 commit comments

Comments
 (0)