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 }