swapper-org / NodeChain

Nodechain is a service that allows you to create nodes on a blockchain and connect to them natively through APIs. The goal is to allow the user to build their own nodes natively without having to rely on external services.
MIT License
7 stars 5 forks source link

BTC GetTransaction refactor #116

Closed 0xp3gasus closed 2 years ago

0xp3gasus commented 2 years ago

Description

GetTransaction method reuses BTC apirpc methods. GetBlockByHash, GetBlockByNumber and GetTransactionHex can receive a verbose parameter to be compatible with GetTransaction and not duplicate code with RPC queries

Fixes #88

Dependencies (if any)

Type of change

How Has This Been Tested?

Test Configuration:

Related PR or Docs PR

Docs PR related # Other PR related #

Good practices to consider

0xp3gasus commented 2 years ago

This can be merged but why did you change things in close() method of the websockets?

It is a bug fix, error.RpcBadRequestError requires two parameters, before, one was given