walletrpc: add note to poorly named field

Fixes #2986.
This commit is contained in:
Oliver Gugger committed 2023-06-13 11:58:33 +02:00
1 parent 56dba2df03
commit 31330f1ffc
3 files changed
+7 -3

No files matched your search

+3 -1
View File
@@ -2246,7 +2246,9 @@ type Transaction struct {
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The raw serialized transaction.
// The raw serialized transaction. Despite the field name, this does need to be
// specified in raw bytes (or base64 encoded when using REST) and not in hex.
// To not break existing software, the field can't simply be renamed.
TxHex []byte `protobuf:"bytes,1,opt,name=tx_hex,json=txHex,proto3" json:"tx_hex,omitempty"`
// An optional label to save with the transaction. Limited to 500 characters.
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`