lib/sp_store/server/controller.rb
def write_block(session_id, block_id, data, nonce)
    _check_block_id block_id
    session_cache_entry = @allocator.session_cache_entry session_id
    @storage.write_block block_id, data
    data_hash = @p.hash_engine.hash_block data
    @hash_tree_controller.sign_write_block block_id, data_hash, session_cache_entry, nonce
  end
# :nodoc: called by Session
:nodoc: called by Session
: nodoc : called by Session
def write_block(session_id, block_id, data, nonce)
    _check_block_id block_id
    session_cache_entry = @allocator.session_cache_entry session_id
    @storage.write_block block_id, data
    data_hash = @p.hash_engine.hash_block data
    @hash_tree_controller.sign_write_block block_id, data_hash, session_cache_entry, nonce
  end
def write_block ( session_id , block_id , data , nonce ) _check_block_id block_id session_cache_entry = @allocator . session_cache_entry session_id @storage . write_block block_id , data data_hash = @p . hash_engine . hash_block data @hash_tree_controller . sign_write_block block_id , data_hash , session_cache_entry , nonce end
:nodoc: called by Session
: nodoc : called by Session
session_id
block_id
data
nonce