6

I am trying to understand the different numbers this command outputs and how they relate. Can anyone shed some more light on this? E.g.

"neighbors": [
    {
      "address": "xxxxxxxxx:14600",
      "numberOfAllTransactions": 252391,
      "numberOfRandomTransactionRequests": 19152,
      "numberOfNewTransactions": 21744,
      "numberOfInvalidTransactions": 0,
      "numberOfSentTransactions": 242167,
      "connectionType": "udp"
    },
3

address

IP address:port or domain name:port of neighbor

numberOfAllTransactions

Number of all transactions the neighbor sent to you. Invalid, valid and already-seen.
is incremented here

numberOfRandomTransactionRequest

Number of random tips the neighbor requested from your node.
is incremented here

numberOfNewTransactions

Number of new transactions received from the neighbor. New transactions are transactions that you have not yet stored when the neighbor sends it to you.
is incremented here

numberOfInvalidTransactions

Number of invalid transactions the neighbor sent you.
is incremented here and here

numberOfSentTransactions

Number of all new transactions you get from other neighbors and forward to that neighbor.
(You forward all new transactions from one neighbor to all other neighbours)
So the number is exactly the sum of all new transactions from your neighbors except this neighbor.
is incremented here

connection

Wether your nodes are sending each other transactions via UDP or TCP

  • Nice thanks. I do think however that numberOfSentTransactions has to be adjusted a bit. Copy/pasting from this answer: Sent Transactions is the sum of all New Transactions from all neighbors minus the new tx it received from the node it is sending to. Your node broadcasts all new tx it received to all other nodes. – GJEEE Jan 8 '18 at 19:36
  • 1
    Yes, thats just a complicated way of saying "number of transactions you sent to your neighbor" isn't it? I edited the answer to make it more understandable. – Zauz Jan 8 '18 at 19:43
  • 1
    true but it also gives a bit more background in how the set of tx to send is determined – GJEEE Jan 8 '18 at 19:51
2

You are probably asking for the meaning of different transactions terms. You can find a quite good answer in What's “All Transactions” in IOTA Peer Manager?.

You can also look at file Node.java of IRI code searching for occurences of neighbor.incAllTransactions();, neighbor.incNewTransactions();, neighbor.incRandomTransactionRequests();, neighbor.incInvalidTransactions();. The inc prefix stands for increment.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.