get_block_height

Returns the block height regardless of whether op_context exists. Returns:

  • 0 if this is the first block

  • block_height if op_context exists

  • last block height + 1 if op_context does not exist