Skip to content

Expose block hash and tx hash #1086

Open
@webmaster128

Description

@webmaster128

Pro: gives a block/tx identifier that can easily be used with other tools.
Con: people will use it as a weak source of randomness.

In Ehtereum, blockhash is available as a global function in Solidity. In https://ethereum.stackexchange.com/questions/2664/is-it-possible-to-get-the-transaction-hash-from-within-a-solidity-function-call people seem to conclude that the transaction hash could be added but is currently not available. There it is also stated that the block hash of the current execution depends on the execution result. Do we have a similar issue in Cosmos?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions