2018-09-26 16:26:39 +00:00
|
|
|
# beacon_chain
|
|
|
|
# Copyright (c) 2018 Status Research & Development GmbH
|
|
|
|
# Licensed and distributed under either of
|
|
|
|
# * MIT license (license terms in the root directory or at http://opensource.org/licenses/MIT).
|
|
|
|
# * Apache v2 license (license terms in the root directory or at http://www.apache.org/licenses/LICENSE-2.0).
|
|
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
|
|
|
|
import
|
|
|
|
unittest,
|
2018-11-28 19:49:03 +00:00
|
|
|
../beacon_chain/spec/datatypes,
|
|
|
|
../beacon_chain/state_transition
|
2018-09-26 16:26:39 +00:00
|
|
|
|
|
|
|
suite "Block processing":
|
|
|
|
## For now just test that we can compile and execute block processing with mock data.
|
|
|
|
|
|
|
|
test "Mock process_block":
|
2018-11-19 16:47:57 +00:00
|
|
|
let actState = BeaconState()
|
|
|
|
let crystState = BeaconState()
|
2018-09-26 16:26:39 +00:00
|
|
|
let blck = BeaconBlock()
|
2018-11-09 09:34:30 +00:00
|
|
|
let slot = 10'u
|
2018-09-26 16:26:39 +00:00
|
|
|
|
|
|
|
actState.process_block(crystState, blck, slot)
|