SaveTransaction persist transaction to store
(tx *types.Transaction, height uint32)
| 353 | |
| 354 | //SaveTransaction persist transaction to store |
| 355 | func (this *BlockStore) SaveTransaction(tx *types.Transaction, height uint32) { |
| 356 | if this.enableCache { |
| 357 | this.cache.AddTransaction(tx, height) |
| 358 | } |
| 359 | this.putTransaction(tx, height) |
| 360 | } |
| 361 | |
| 362 | func (this *BlockStore) putTransaction(tx *types.Transaction, height uint32) { |
| 363 | txHash := tx.Hash() |