Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
Signed-off-by: Stanislav Frolov <stanislav@thirdhash.com>
  • Loading branch information
frolosofsky committed Apr 4, 2019
1 parent 181f109 commit d90c996
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/validation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ static bool ContextualCheckFinalizerCommit(const CTransaction &tx, CValidationSt
const auto log_cat = GetTransactionLogCategory(tx);
LogPrint(log_cat, "Checking %s with id %s\n", tx.GetType()._to_string(), tx.GetHash().GetHex());
if (tx.IsVote()) {
if (!esperanza::CheckVoteTx(tx, err_state, /*vote=*/nullptr, /*vote_sig=*/nullptr)) {
if (!esperanza::CheckVoteTx(tx, err_state, /*vote_out=*/nullptr, /*vote_sig_out=*/nullptr)) {
return false;
}
if (!finalization::RecordVote(tx, err_state, tip_fin_state)) {
Expand Down
2 changes: 1 addition & 1 deletion test/functional/test_framework/test_framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def generate_epoch(cls, proposer, finalizer, count=1):
Generate `count` epochs and collect votes.
"""
epoch_length = proposer.getfinalizationconfig()['epochLength']
assert(epoch_length > 1)
assert epoch_length > 1
votes=[]
for _ in range(count):
proposer.generatetoaddress(epoch_length - 1, proposer.getnewaddress('', 'bech32'))
Expand Down

0 comments on commit d90c996

Please sign in to comment.