This should probably be more automated and let you just do

NewHeartbeat(prevHeartbeat, storage_bullshit)

with this being the underlying constructor. Plus that way you don't have to deal with storing heartbeats in the swarm and can just store it in a private field in the heartbeat.