Open mplattner opened 4 years ago
I think there was some intended convention, like to have "getX" when it involves a lookup of data outside of the current struct/class or some computation involved (e.g., Block
knows its height but Output
needs to get it based on the txNum
), but clearly that's not in any way consistent right now.
Some names are inconsistent in the (C++) API. Below is a (non exhaustive) list of some examples:
Input.age()
vs.Output.getBlockHeight()
vs.Block.height()
Output.txIndex()
vs.Output.getValue()
)Output.getType()
: can be named togetAddressType
txNum
vs.txIndex