Compare commits
	
		
			No commits in common. "19b2fa65fae9d79a2b7fc455e221a1f2634a8d6e" and "99d18322b28ecfd660d74b6fd1ca4f237b871c10" have entirely different histories.
		
	
	
		
			19b2fa65fa
			...
			99d18322b2
		
	
		
| @ -24,6 +24,7 @@ import ( | |||||||
| var ( | var ( | ||||||
| 	scriptDir      = path.Join("services", "registration") | 	scriptDir      = path.Join("services", "registration") | ||||||
| 	translationDir = path.Join(scriptDir, "locale") | 	translationDir = path.Join(scriptDir, "locale") | ||||||
|  | 	//dbFile         = path.Join(scriptDir, "userdata.gdbm")
 | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| const ( | const ( | ||||||
| @ -754,9 +755,11 @@ func (h *Handlers) GetRecipient(ctx context.Context, sym string, input []byte) ( | |||||||
| 	return res, nil | 	return res, nil | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // GetSender retrieves the public key from the Gdbm Db
 | // GetSender retrieves the public key from a JSON data file.
 | ||||||
| func (h *Handlers) GetSender(ctx context.Context, sym string, input []byte) (resource.Result, error) { | func (h *Handlers) GetSender(ctx context.Context, sym string, input []byte) (resource.Result, error) { | ||||||
| 	res := resource.Result{} | 	res := resource.Result{} | ||||||
|  | 
 | ||||||
|  | 	//accountData, err := h.accountFileHandler.ReadAccountData()
 | ||||||
| 	publicKey, err := h.db.Fetch([]byte(PublicKeyKey)) | 	publicKey, err := h.db.Fetch([]byte(PublicKeyKey)) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
| 		return res, err | 		return res, err | ||||||
| @ -767,7 +770,7 @@ func (h *Handlers) GetSender(ctx context.Context, sym string, input []byte) (res | |||||||
| 	return res, nil | 	return res, nil | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // GetAmount retrieves the amount from teh Gdbm Db
 | // GetAmount retrieves the amount from a JSON data file.
 | ||||||
| func (h *Handlers) GetAmount(ctx context.Context, sym string, input []byte) (resource.Result, error) { | func (h *Handlers) GetAmount(ctx context.Context, sym string, input []byte) (resource.Result, error) { | ||||||
| 	res := resource.Result{} | 	res := resource.Result{} | ||||||
| 	amount, err := h.db.Fetch([]byte(Amount)) | 	amount, err := h.db.Fetch([]byte(Amount)) | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user