Skip to main content
deleted 1 characters in body
Source Link
Neil Neyman
  • 588
  • 3
  • 18

This isn't a complete answer but I might be able to point you in the right direction:

It seems like you have:

CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)

So you're taking a CScript as a parameter. Some additional relevant links. I think you would either use that to create multiple outputs, or you would use

txNew[vout[1]];txNew.vout[1];

Also see how they do it here:

This isn't a complete answer but I might be able to point you in the right direction:

It seems like you have:

CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)

So you're taking a CScript as a parameter. Some additional relevant links. I think you would either use that to create multiple outputs, or you would use

txNew[vout[1]];

Also see how they do it here:

This isn't a complete answer but I might be able to point you in the right direction:

It seems like you have:

CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)

So you're taking a CScript as a parameter. Some additional relevant links. I think you would either use that to create multiple outputs, or you would use

txNew.vout[1];

Also see how they do it here:

Source Link
Neil Neyman
  • 588
  • 3
  • 18

This isn't a complete answer but I might be able to point you in the right direction:

It seems like you have:

CBlockTemplate* CreateNewBlock(const CScript& scriptPubKeyIn)

So you're taking a CScript as a parameter. Some additional relevant links. I think you would either use that to create multiple outputs, or you would use

txNew[vout[1]];

Also see how they do it here: