Open OnedgeLee opened 1 month ago
https://github.com/planetarium/libplanet/blob/f3d6674a59cb00a961e67b68c8090d43de6dbc92/Libplanet.Tests/TestUtils.cs#L429-L442
Action Initialize() updates validator set of IWorld with given parameter validatorSet. So above code, that iterates validatorSet, is redundant. (Initialize() only needs to be called once.)
Initialize()
IWorld
validatorSet
https://github.com/planetarium/libplanet/blob/f3d6674a59cb00a961e67b68c8090d43de6dbc92/Libplanet.Tests/TestUtils.cs#L429-L442
Action
Initialize()
updates validator set ofIWorld
with given parametervalidatorSet
. So above code, that iterates validatorSet, is redundant. (Initialize()
only needs to be called once.)