Changed how logs are being recorded
Logs are now recorded per transactions instead of tossing them out after each transaction. This should also fix an issue with `eth_getFilterLogs` (#629) Also now implemented are the `transactionHash, blockHash, transactionIndex, logIndex` on logs. Closes #654.
This commit is contained in:
@ -47,7 +47,7 @@ func (self *VMEnv) GetHash(n uint64) common.Hash {
|
||||
|
||||
return common.Hash{}
|
||||
}
|
||||
func (self *VMEnv) AddLog(log state.Log) {
|
||||
func (self *VMEnv) AddLog(log *state.Log) {
|
||||
self.state.AddLog(log)
|
||||
}
|
||||
func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) error {
|
||||
|
Reference in New Issue
Block a user