@@ -542,19 +542,6 @@ export class WalletDB {
542
542
await this . transactions . del ( [ account . prefix , transactionHash ] , tx )
543
543
}
544
544
545
- async * getTransactionHashesBySequence (
546
- account : Account ,
547
- tx ?: IDatabaseTransaction ,
548
- ) : AsyncGenerator < { sequence : number ; hash : Buffer } > {
549
- for await ( const [ , [ sequence , hash ] ] of this . sequenceToTransactionHash . getAllKeysIter (
550
- tx ,
551
- account . prefixRange ,
552
- { ordered : true } ,
553
- ) ) {
554
- yield { sequence, hash }
555
- }
556
- }
557
-
558
545
async * loadTransactions (
559
546
account : Account ,
560
547
range ?: DatabaseKeyRange ,
@@ -831,24 +818,6 @@ export class WalletDB {
831
818
}
832
819
}
833
820
834
- async * loadNullifierToNoteHash (
835
- account : Account ,
836
- tx ?: IDatabaseTransaction ,
837
- ) : AsyncGenerator < {
838
- nullifier : Buffer
839
- noteHash : Buffer
840
- } > {
841
- for await ( const [ [ _ , nullifier ] , noteHash ] of this . nullifierToNoteHash . getAllIter (
842
- tx ,
843
- account . prefixRange ,
844
- ) ) {
845
- yield {
846
- nullifier,
847
- noteHash,
848
- }
849
- }
850
- }
851
-
852
821
async deleteNullifier (
853
822
account : Account ,
854
823
nullifier : Buffer ,
@@ -1142,19 +1111,6 @@ export class WalletDB {
1142
1111
}
1143
1112
}
1144
1113
1145
- async saveSequenceToTransactionHash (
1146
- account : Account ,
1147
- sequence : number ,
1148
- transactionHash : Buffer ,
1149
- tx ?: IDatabaseTransaction ,
1150
- ) : Promise < void > {
1151
- await this . sequenceToTransactionHash . put (
1152
- [ account . prefix , [ sequence , transactionHash ] ] ,
1153
- null ,
1154
- tx ,
1155
- )
1156
- }
1157
-
1158
1114
async deleteSequenceToTransactionHash (
1159
1115
account : Account ,
1160
1116
sequence : number ,
@@ -1406,10 +1362,6 @@ export class WalletDB {
1406
1362
return this . multisigIdentities . get ( identity , tx )
1407
1363
}
1408
1364
1409
- async hasMultisigIdentity ( identity : Buffer , tx ?: IDatabaseTransaction ) : Promise < boolean > {
1410
- return ( await this . getMultisigIdentity ( identity , tx ) ) !== undefined
1411
- }
1412
-
1413
1365
async deleteMultisigIdentity ( identity : Buffer , tx ?: IDatabaseTransaction ) : Promise < void > {
1414
1366
await this . multisigIdentities . del ( identity , tx )
1415
1367
}
0 commit comments