Browse Source

fix(grpc): use Numbers to represent long values

Configure gRPC to use Numbers to represent long values instead of
Strings. This ensures that we can do accurate handling of numerical
values.

Fix #727
renovate/lint-staged-8.x
Tom Kirkpatrick 6 years ago
parent
commit
47b95a0ea0
No known key found for this signature in database GPG Key ID: 72203A8EC5967EA8
  1. 2
      app/lib/lnd/lightning.js
  2. 2
      app/lib/lnd/walletUnlocker.js

2
app/lib/lnd/lightning.js

@ -71,7 +71,7 @@ class Lightning {
// See https://github.com/grpc/grpc-node/blob/master/packages/grpc-protobufjs/README.md
const options = {
keepCase: true,
longs: String,
longs: Number,
enums: String,
defaults: true,
oneofs: true

2
app/lib/lnd/walletUnlocker.js

@ -21,7 +21,7 @@ export const walletUnlocker = lndConfig => {
// See https://github.com/grpc/grpc-node/blob/master/packages/grpc-protobufjs/README.md
const options = {
keepCase: true,
longs: String,
longs: Number,
enums: String,
defaults: true,
oneofs: true

Loading…
Cancel
Save