Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix some comments #1085

Merged
merged 1 commit into from
May 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/coins.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ class Coin
//! COINBASE_MATURITY blocks deep in the blockchain (that is: COINBASE_MATURITY
//! blocks have to be included in the chain afterwards).
//!
//! \param prevout_index The output index.
//! \param spend_height The height at which the TxOut is tried to be spent.
//! \param prevout_index The output index
bool IsImmatureCoinBaseReward(const uint32_t prevout_index, const int spend_height) const {
if (!IsCoinBase() || prevout_index > 0) {
// Only the first output of a coinbase (containing rewards and fees
Expand Down
6 changes: 3 additions & 3 deletions test/functional/feature_snapshot_finalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def run_test(self):
'lastFinalizedEpoch': 6,
'validators': 1})

self.log.info("Check slashig condition")
# Create new vote with input=votes[-1] which attepts to make a double vote
self.log.info("Check slashing condition")
# Create new vote with input=votes[-1] which attempts to make a double vote
# To detect double vote, it's enough having two votes which are:
# 1. from same validator
# 2. with same source epoch
Expand All @@ -121,7 +121,7 @@ def run_test(self):
wait_until(lambda: len(s.getrawmempool()) > 0, timeout=20)
slash = FromHex(CTransaction(), s.getrawtransaction(s.getrawmempool()[0]))
assert_equal(slash.get_type(), TxType.SLASH)
self.log.info("Slahed")
self.log.info("Slashed")

self.log.info("Restart fast-sync node")
self.restart_node(s.index)
Expand Down