diff --git a/backend/.gitignore b/backend/.gitignore index 6eadcc884..63b375206 100644 --- a/backend/.gitignore +++ b/backend/.gitignore @@ -4,5 +4,6 @@ /build/ package-json.lock coverage +log.txt # emacs *~ diff --git a/dlt-connector/src/data/proto/3_3/TransactionBody.ts b/dlt-connector/src/data/proto/3_3/TransactionBody.ts index 70199c03c..a4169b488 100644 --- a/dlt-connector/src/data/proto/3_3/TransactionBody.ts +++ b/dlt-connector/src/data/proto/3_3/TransactionBody.ts @@ -126,12 +126,14 @@ export class TransactionBody extends Message { public getRecipientPublicKey(): Buffer | undefined { if (this.transfer) { + // this.transfer.recipient contains the publicKey of the recipient return this.transfer.recipient } if (this.creation) { return this.creation.recipient.pubkey } if (this.deferredTransfer) { + // this.deferredTransfer.transfer.recipient contains the publicKey of the recipient return this.deferredTransfer.transfer.recipient } return undefined diff --git a/dlt-connector/src/typeorm/DataSource.ts b/dlt-connector/src/typeorm/DataSource.ts index 18be65300..ecdfc1b66 100644 --- a/dlt-connector/src/typeorm/DataSource.ts +++ b/dlt-connector/src/typeorm/DataSource.ts @@ -59,7 +59,7 @@ export class Connection { public async init(): Promise { await this.connection.initialize() try { - await Connection.getInstance() + Connection.getInstance() } catch (error) { // try and catch for logging logger.fatal(`Couldn't open connection to database!`) diff --git a/dlt-database/entity/0002-refactor_add_community/ConfirmedTransaction.ts b/dlt-database/entity/0002-refactor_add_community/ConfirmedTransaction.ts index e973f9571..1cdc591bf 100644 --- a/dlt-database/entity/0002-refactor_add_community/ConfirmedTransaction.ts +++ b/dlt-database/entity/0002-refactor_add_community/ConfirmedTransaction.ts @@ -10,6 +10,7 @@ import { import { Decimal } from 'decimal.js-light' import { DecimalTransformer } from '../../src/typeorm/DecimalTransformer' +// the relation in future account don't match which this any longer, so we can only link with the local account here import { Account } from './Account' // TransactionRecipe was removed in newer migrations, so only the version from this folder can be linked import { TransactionRecipe } from '../0001-init_db/TransactionRecipe'