Add gas payment to initial execution and replayComputeState

Description

10/10/2019

This ticket should cover the scope of discussion between Joe and Marcin on 10/10/2019 and should follow the design ideas in https://gist.github.com/ArturGajowy/73e481767548b084a8e5d7c19bb1f70c

'System Deploy' should be the first priority of implementation. If it makes sense, it can be split into a separate ticket. If the different refactorings needed for system deploy can be carried out in parallel, we should do so. Once System Deploy is available, it unblocks epic 3631 .

Older:

This PR https://github.com/rchain/rchain/pull/2385 added balance verification and gas payments to the `computeState` function of RuntimeManager.

Next, we need to update `replayComputeState` to verify the result of the balance check and to replay the gas payment.

The source code for my first attempt is below.

Assignee

Marcin Rze┼║nicki

Reporter

Joseph Denman

Priority

High

Components

Story Points

10

Epic Link

None

Fix versions

Labels

None

Sprint

Configure