Use tokio async/await instead of callbacks
This commit is contained in:
4
backend/rust-gbt/index.d.ts
vendored
4
backend/rust-gbt/index.d.ts
vendored
@@ -3,8 +3,8 @@
|
||||
|
||||
/* auto-generated by NAPI-RS */
|
||||
|
||||
export function make(mempoolBuffer: Uint8Array, callback: (result: GbtResult) => void): void
|
||||
export function update(newTxs: Uint8Array, removeTxs: Uint8Array, callback: (result: GbtResult) => void): void
|
||||
export function make(mempoolBuffer: Uint8Array): Promise<GbtResult>
|
||||
export function update(newTxs: Uint8Array, removeTxs: Uint8Array): Promise<GbtResult>
|
||||
/**
|
||||
* The result from calling the gbt function.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user