Inventory messages contain a property called .inventory which is an array of Invectory instances. This is a bit confusing and unusual as array properties are typically pluralised. One solutions would be to rename the .inventory property to .invs. Alternatively, Invectory could be renamed to InvVector to reflect the common usage (https://en.bitcoin.it/wiki/Protocol_documentation#Inventory_Vectors).
Inventory messages contain a property called
.inventory
which is an array ofInvectory
instances. This is a bit confusing and unusual as array properties are typically pluralised. One solutions would be to rename the.inventory
property to.invs
. Alternatively,Invectory
could be renamed toInvVector
to reflect the common usage (https://en.bitcoin.it/wiki/Protocol_documentation#Inventory_Vectors).