Skip to content

Commit

Permalink
Making progress... TxIOPair good place to note ZC
Browse files Browse the repository at this point in the history
  • Loading branch information
etotheipi committed Jan 16, 2012
1 parent 1765f2e commit 8f3d02d
Show file tree
Hide file tree
Showing 3 changed files with 298 additions and 55 deletions.
4 changes: 4 additions & 0 deletions cppForSwig/BlockObjRef.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,9 @@ uint32_t TxRef::getBlockHeight(void)
// header and try to match up
uint32_t TxRef::getBlockTxIndex(void)
{
if(headerPtr_ == NULL)
return UINT32_MAX;

vector<TxRef*> txlist = headerPtr_->getTxRefPtrList();
for(uint32_t i=0; i<txlist.size(); i++)
if( txlist[i] == this )
Expand Down Expand Up @@ -573,6 +576,7 @@ void TxRef::pprint(ostream & os, int nIndent, bool pBigendian)
void TxRef::pprintAlot(ostream & os)
{
cout << "Tx hash: " << thisHash_.toHexStr(true) << endl;
if(not headerPtr_==NULL)
{
cout << "HeaderNum: " << headerPtr_->getBlockHeight() << endl;
cout << "HeadHash: " << headerPtr_->getThisHash().toHexStr(true) << endl;
Expand Down
Loading

0 comments on commit 8f3d02d

Please sign in to comment.