Skip to content

Commit

Permalink
begin consensus support for peg-ins
Browse files Browse the repository at this point in the history
  • Loading branch information
instagibbs committed Nov 6, 2017
1 parent 34d7cd0 commit 0b9c5eb
Show file tree
Hide file tree
Showing 3 changed files with 283 additions and 226 deletions.
3 changes: 3 additions & 0 deletions src/coins.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ bool CCoinsViewCache::HaveInputs(const CTransaction& tx) const
{
if (!tx.IsCoinBase()) {
for (unsigned int i = 0; i < tx.vin.size(); i++) {
if (tx.vin[i].m_is_pegin) {
continue;
}
const COutPoint &prevout = tx.vin[i].prevout;
const CCoins* coins = AccessCoins(prevout.hash);
if (!coins || !coins->IsAvailable(prevout.n)) {
Expand Down
Loading

0 comments on commit 0b9c5eb

Please sign in to comment.