deroproject / derohe

DERO Homomorphic Encryption Blockchain Protocol
Other
208 stars 82 forks source link

Walletapi Connect Logic Updates For More Prefixes And Parameter Inputs #158

Closed Nelbert442 closed 9 months ago

Nelbert442 commented 9 months ago

Description

This change will allow walletapi package calls to leverage the Connect() function to more appropriately connect to various defined endpoints (whether via the endpoint parameter or defined in --daemon-address params).

Supported prefix endpoint uris:

If endpoint is not defined within the Connect() call, such as in walletapi.Keep_Connectivity(), then the default will be utilized (127.0.0.1:xxxx) or if an argument was passed into globals then it will be used (whichever is returned from get_daemon_address().

Type of change

Please select the right one.

Which part is impacted ?

Checklist:

License

Im am contributing & releasing the code under DERO Research License (which can be found here).

DaBisounours commented 9 months ago

Tested successfully against a node with wss:// prefix using the following parameter: --daemon-address=wss://<node_ip>

Nelbert442 commented 9 months ago

Updated explorer to add support for same prefixes

e.g. go run explorer.go --daemon-address=wss://<someaddress>:40402 --http-address=0.0.0.0:8853