Open
Description
Background
In many places of LND gRPC protobuf documents is used int64
type instead of uint64
or uint32
, even if value will never be negative, and negative numbers don't make any sense in context. For example (just some of many)
dates
Lines 2838 to 2842 in 3190437
and money amounts
Lines 2896 to 2904 in 3190437
Line 2826 in 3190437
I'm not expert in BOLT protocol, and I don't know many details. Maybe these values actually can be negative, I don't know. But if they can't - transition to uint64
or uint32
might be good improvement, and will reduce complexity everywhere including third-party applications which are using gRPC to communicate with LND.
Your environment
- grpc-1.23.0
- lnd version 0.10.0-beta
- Linux 4b3ce405f0cb 4.19.76-linuxkit Fix name typo in README #1 SMP Fri Apr 3 15:53:26 UTC 2020 x86_64 GNU/Linux
- Bitcoin Core Daemon version v0.18.1.0-gfa27a0760792b251585f2a70eccdd547f915b7e4