Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Commit

Permalink
Remove changedness optimization for zero-value transfers.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseth committed Nov 4, 2016
1 parent ab82b0a commit 6b29490
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libethereum/Account.h
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class Account
u256 const& balance() const { return m_balance; }

/// Increments the balance of this account by the given amount. It's a bigint, so can be negative.
void addBalance(bigint _i) { if (!_i) return; m_balance = (u256)((bigint)m_balance + _i); changed(); }
void addBalance(bigint _i) { m_balance = (u256)((bigint)m_balance + _i); changed(); }

/// @returns the nonce of the account. Can be altered in place.
u256& nonce() { return m_nonce; }
Expand Down

0 comments on commit 6b29490

Please sign in to comment.