Skip to content

Commit

Permalink
Merge pull request #93 from BlockMechanic/segwit
Browse files Browse the repository at this point in the history
m
  • Loading branch information
BlockMechanic authored Aug 11, 2022
2 parents 6254b42 + e72adeb commit 4457efa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/miner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -279,15 +279,15 @@ std::unique_ptr<CBlockTemplate> BlockAssembler::CreateNewBlock(const CScript& sc
pblock->vtx[0] = MakeTransactionRef(std::move(coinbaseTx));

if (fProofOfStake){
//pblock->vtx.emplace_back();
pblock->vtx.emplace_back();
pblock->vtx[1] = MakeTransactionRef(std::move(txCoinStake));
}

LogPrintf("%s: vtx size %d\n",__func__, pblock->vtx.size());
/*

if(fProofOfStake && pblock->vtx.size() > 2)
pblock->vtx.pop_back();
*/

for (auto a: pblock->vtx)
LogPrintf("%s\n", a->ToString());

Expand Down
2 changes: 1 addition & 1 deletion src/wallet/wallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ bool CWallet::AddToWalletIfInvolvingMe(const CTransactionRef& ptx, CWalletTx::Co
std::pair<TxSpends::const_iterator, TxSpends::const_iterator> range = mapTxSpends.equal_range(txin.prevout);
while (range.first != range.second) {
if (range.first->second != tx.GetHash()) {
WalletLogPrintf("Transaction %s (in block %s) conflicts with wallet transaction %s (both spend %s:%i)\n", tx.GetHash().ToString(), confirm.hashBlock.ToString(), range.first->second.ToString(), range.first->first.hash.ToString(), range.first->first.n);
//WalletLogPrintf("Transaction %s (in block %s) conflicts with wallet transaction %s (both spend %s:%i)\n", tx.GetHash().ToString(), confirm.hashBlock.ToString(), range.first->second.ToString(), range.first->first.hash.ToString(), range.first->first.n);
MarkConflicted(confirm.hashBlock, confirm.block_height, range.first->second);
}
range.first++;
Expand Down

0 comments on commit 4457efa

Please sign in to comment.