From b08948abcd2819c328d7ef9f092b411fc81324dc Mon Sep 17 00:00:00 2001 From: Maykel Arias Torres Date: Sat, 14 Sep 2019 09:20:35 -0400 Subject: [PATCH] [cgo] refs #105 Correcting declare function in `SKY_params_Distribution_GetMainNetDistribution` --- lib/cgo/params.distribution.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/cgo/params.distribution.go b/lib/cgo/params.distribution.go index a45035b93..46e61f0b1 100644 --- a/lib/cgo/params.distribution.go +++ b/lib/cgo/params.distribution.go @@ -230,13 +230,7 @@ func SKY_params_Distribution_LockedAddressesDecoded(_d C.Distribution__Handle, _ //export SKY_params_Distribution_GetMainNetDistribution func SKY_params_Distribution_GetMainNetDistribution(_d *C.Distribution__Handle) (____error_code uint32) { - d, ok := lookupDistributionHandle(*_d) - if !ok { - ____error_code = SKY_BAD_HANDLE - return - } - *d = params.MainNetDistribution - *_d = registerDistributionHandle(d) + *_d = registerDistributionHandle(¶ms.MainNetDistribution) return }