Skip to main content

block_statement

Function block_statement 

Source
pub fn block_statement(
    transactions: &[TransactionStatementInfo],
    addresses: &[ResolutionStatementInfo],
    mosaics: &[ResolutionStatementInfo],
) -> Result<BlockStatement, RestError>
Expand description

同じ高さの3種類のステートメントを、catapult の並びにまとめる。

catapult はそれぞれを std::map に持つので、トランザクションのステートメントは元の順、アドレスの解決は 解決する前のアドレスのバイト列の順、モザイクの解決は解決する前の ID の順に並ぶ。REST は DB の順に返すので、 ここで並べ直す。BlockStatement::merkle_hash が、ブロックの ReceiptsHash と比べられる値になる。