We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5866573 commit 2b47f49Copy full SHA for 2b47f49
database/models/transaction.go
@@ -26,6 +26,7 @@ type Transaction struct {
26
ID uint `gorm:"primaryKey"`
27
Type int
28
BlockIndex uint32
29
+ Metadata []byte
30
}
31
32
func (Transaction) TableName() string {
database/plugin/metadata/sqlite/transaction.go
@@ -64,6 +64,10 @@ func (d *MetadataStoreSqlite) SetTransaction(
64
BlockHash: point.Hash,
65
BlockIndex: idx,
66
67
+ if tx.Metadata() != nil {
68
+ tmpMetadata := tx.Metadata().Cbor()
69
+ tmpTx.Metadata = tmpMetadata
70
+ }
71
collateralReturn := tx.CollateralReturn()
72
for _, utxo := range tx.Produced() {
73
if collateralReturn != nil && utxo.Output == collateralReturn {
0 commit comments