Skip to content
This repository was archived by the owner on Oct 10, 2022. It is now read-only.
This repository was archived by the owner on Oct 10, 2022. It is now read-only.

get_block not returns all original data #17

@wuminzhe

Description

@wuminzhe

original:
{"block"=>{"extrinsics"=>["0x280402000b20710fb36e01", "0x1004090020", "0x1004140000"], "header"=>{"digest"=>{"logs"=>["0x0642414245340205000000fe55a50f00000000", "0x0542414245010196432506a89384d0c8555a389118bb32137964a2ecfed3efba3464c2ba952c5da8b3340cbf32d072a4ef6c29a4bc1205bd7493951f65c000ed55115f6b364580"]}, "extrinsicsRoot"=>"0xcd3c156e302a2b82ea7913436b2e232e62f7160191f2e0512cf86537ab149ad2", "number"=>"0xa", "parentHash"=>"0x052d472a8a29fda9b238d9ecc1ba43775ea596f74eac77c0b5d10bea13edf802", "stateRoot"=>"0xc56c5bc08ca0695e7f213e42acad597e86faf453d1d9c1d250381472f67bc622"}}, "justification"=>nil}

decoded_block = client.get_block("0x1011c6643b146259206cd0a22bc00f73143d34f3301875a92bdd96a7e3
62337f")
{"block"=>{"extrinsics"=>[{:call_index=>"0200", :call_function=>"set", :call_module=>"timestamp", :params_raw=>"0x0b20710fb36e01", :params=>[{:name=>"now", :type=>"Compact<T::Moment>", :scale_type=>Scale::Types::CompactMoment, :value=>"2019-11-29 01:29:24"}], :extrinsic_length=>10, :version_info=>"0x04"}, {:call_index=>"0900", :call_function=>"final_hint", :call_module=>"finalitytracker", :params_raw=>"0x20", :params=>[{:name=>"hint", :type=>"Compact<T::BlockNumber>", :scale_type=>Scale::Types::Compact, :value=>8}], :extrinsic_length=>4, :version_info=>"0x04"}, {:call_index=>"1400", :call_function=>"set_heads", :call_module=>"parachains", :params_raw=>"0x00", :params=>[{:name=>"heads", :type=>"Vec<AttestedCandidate>", :scale_type=>Scale::Types::Vec˂AttestedCandidate˃_33540, :value=>[]}], :extrinsic_length=>4, :version_info=>"0x04"}], "header"=>{"digest"=>{"logs"=>[["BABE", "0x0205000000fe55a50f00000000"], ["BABE", "0x96432506a89384d0c8555a389118bb32137964a2ecfed3efba3464c2ba952c5da8b3340cbf32d072a4ef6c29a4bc1205bd7493951f65c000ed55115f6b364580"]]}, "extrinsicsRoot"=>"0xcd3c156e302a2b82ea7913436b2e232e62f7160191f2e0512cf86537ab149ad2", "number"=>10, "parentHash"=>"0x052d472a8a29fda9b238d9ecc1ba43775ea596f74eac77c0b5d10bea13edf802", "stateRoot"=>"0xc56c5bc08ca0695e7f213e42acad597e86faf453d1d9c1d250381472f67bc622"}}, "justification"=>nil}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions