7

This is more or less to confirm my deeper understanding of IRI and how it all works.

From the docs and the code what I see is, that attachToTangle outsources the PoW to a node. It is broadcastTransactions what sends a "complete" transaction (including the Pow) to the network.

If this is correct, I assume, that a wallet which does PoW itself, never needs to call the attachToTangle API.

Is this all correct?

ralf
  • 1,063
  • 5
  • 10

1 Answers1

3

Yes, this is all correct.

Don't forget to storeTrnsactions before you broadcast them, or your own node may not have them later for reference.

mihi
  • 7,324
  • 2
  • 15
  • 34
  • I upvoted these question and answer and also these because they illuminate an important question. It could be useful to recap all things in a scheme. – blockmined Jan 16 '18 at 20:45