mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-02-04 00:05:22 +00:00
Debug message for new messages
This commit is contained in:
parent
6b1e989ff0
commit
492d2ae676
@ -7,7 +7,10 @@
|
||||
|
||||
import
|
||||
eth_common,
|
||||
../constants, ../validation, ../vm_types
|
||||
../constants, ../validation, ../vm_types, chronicles
|
||||
|
||||
logScope:
|
||||
topics = "message"
|
||||
|
||||
proc `origin=`*(message: var Message, value: EthAddress) =
|
||||
message.internalOrigin = value
|
||||
@ -44,6 +47,16 @@ proc newMessage*(
|
||||
|
||||
validateGte(options.depth, minimum=0, title="Message.depth")
|
||||
|
||||
debug "New message",
|
||||
gas = gas,
|
||||
gasPrice = gasPrice,
|
||||
destination = to,
|
||||
sender = sender,
|
||||
value = value,
|
||||
depth = options.depth,
|
||||
storageAddress = options.createAddress,
|
||||
codeAddress = options.codeAddress
|
||||
|
||||
new(result)
|
||||
result.gas = gas
|
||||
result.gasPrice = gasPrice
|
||||
|
Loading…
x
Reference in New Issue
Block a user