Fixes multiple bugs with outspends and channels

fixes #412
This commit is contained in:
softsimon
2022-08-27 16:00:58 +02:00
parent 1a756c5fa9
commit 40dc476460
8 changed files with 107 additions and 52 deletions

View File

@@ -1,3 +1,5 @@
import { IChannel } from './node-api.interface';
export interface Transaction {
txid: string;
version: number;
@@ -19,6 +21,13 @@ export interface Transaction {
deleteAfter?: number;
_unblinded?: any;
_deduced?: boolean;
_outspends?: Outspend[];
_channels?: TransactionChannels;
}
export interface TransactionChannels {
inputs: { [vin: number]: IChannel };
outputs: { [vout: number]: IChannel };
}
interface Ancestor {