Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Support Blockchain cache API in Nigel #712
It would be nice to support the blockchain cache API (https://github.com/TurtlePay/blockchain-cache-api) transparently for wallets.
You can find the documentation here: https://docs.turtlepay.io/blockapi/
We would probably want to make an IDaemon interface, and then instantiate it with either a ConventionalDaemon or a BlockchainCacheAPI.
This is pretty easy to do, and I've done this exact same thing in TypeScript, so you can easily piggy back off the differences:
Typescript interface: https://github.com/turtlecoin/turtlecoin-wallet-backend-js/blob/master/lib/IDaemon.ts
You might have to slightly tweak the
Note that currently /get_transaction_status is unimplemented in the cache api, but it should be in there pretty soon. It's not essential to wallet operation anyway.
For bonus points, extend