Refactored state, state object and vm

* The State and StateObject have been moved to their own package
* The VM is moved to it's own package
This commit is contained in:
obscuren
2014-07-22 11:54:48 +02:00
parent 20ee1ae65e
commit 1e8b54abfb
15 changed files with 2242 additions and 1 deletions

View File

@ -48,6 +48,12 @@ type PEthereum struct {
}
func NewPEthereum(manager ethchain.EthManager) *PEthereum {
logger.Warnln("DEPRECATED: ethpub.New should be used in favour of ethpub.NewPEthereum")
return New(manager)
}
func New(manager ethchain.EthManager) *PEthereum {
return &PEthereum{
manager,
manager.StateManager(),