// dumpState returns the current emulator state and
// the latest saved state for its session.
// Locks the emulator.
dumpState returns the current emulator state and
the latest saved state for its session.
Locks the emulator.
// dumpState returns the current emulator state and // the latest saved state for its session . // Locks the emulator .
func (emu *EmulatorMock) dumpState() (string, string) {
	emu.Lock()
	bytes, _ := ioutil.ReadFile(emu.paths.save)
	persistedStateHash := getHash(bytes)
	emu.Unlock()
	stateHash := emu.getStateHash()
	fmt.Printf("mem: %v, dat: %v\n", stateHash, persistedStateHash)
	return stateHash, persistedStateHash
}
func ( emu * EmulatorMock ) dumpState ( ) ( string , string ) { emu . Lock ( ) bytes , _ := ioutil . ReadFile ( emu . paths . save ) persistedStateHash := getHash ( bytes ) emu . Unlock ( ) stateHash := emu . getStateHash ( ) fmt . Printf ( " \n " , stateHash , persistedStateHash ) return stateHash , persistedStateHash }
dumpState returns the current emulator state and
the latest saved state for its session.
dumpState returns the current emulator state and the latest saved state for its session .