From ef8e90f4d32e22c090a37ae45a7285f11bbe6d8f Mon Sep 17 00:00:00 2001 From: jbhusson <jonah@elixxir.io> Date: Wed, 6 Jul 2022 14:04:11 -0400 Subject: [PATCH] More comments, use reception id instead of transmission ID for file transfer manager --- bindings/fileTransfer.go | 2 +- bindings/params.go | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bindings/fileTransfer.go b/bindings/fileTransfer.go index a13eb3572..89394f4f1 100644 --- a/bindings/fileTransfer.go +++ b/bindings/fileTransfer.go @@ -97,7 +97,7 @@ func InitFileTransfer(e2eID int) (*FileTransfer, error) { } // Client info - myID := e2eCl.api.GetTransmissionIdentity().ID + myID := e2eCl.api.GetReceptionIdentity().ID rng := e2eCl.api.GetRng() params, err := parseFileTransferParams(paramsJSON) diff --git a/bindings/params.go b/bindings/params.go index 8a83e6328..cc7883b30 100644 --- a/bindings/params.go +++ b/bindings/params.go @@ -40,6 +40,9 @@ func GetDefaultE2EParams() []byte { return data } +// GetDefaultFileTransferParams returns a JSON serialized object with all the +// File transfer parameters and their default values. Call this function and modify +// the json to change file transfer settings. func GetDefaultFileTransferParams() []byte { defaultParams := fileTransfer.DefaultParams() data, err := defaultParams.MarshalJSON() @@ -49,6 +52,9 @@ func GetDefaultFileTransferParams() []byte { return data } +// GetDefaultSingleUseParams returns a JSON serialized object with all the +// single use parameters and their default values. Call this function and modify +// the json to change single use settings. func GetDefaultSingleUseParams() []byte { defaultParams := single.GetDefaultRequestParams() data, err := defaultParams.MarshalJSON() -- GitLab