Skip to content

Commit 9008b15

Browse files
committed
Renamed chain => core
1 parent b6cb527 commit 9008b15

45 files changed

Lines changed: 112 additions & 160 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎block_pool.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
"sync"
1010
"time"
1111

12-
"github.com/ethereum/go-ethereum/chain/types"
12+
"github.com/ethereum/go-ethereum/core/types"
1313
"github.com/ethereum/go-ethereum/ethutil"
1414
"github.com/ethereum/go-ethereum/logger"
1515
"github.com/ethereum/go-ethereum/wire"

‎cmd/mist/bindings.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ import (
2121
"encoding/json"
2222
"os"
2323
"strconv"
24-
"github.com/ethereum/go-ethereum/chain/types"
24+
2525
"github.com/ethereum/go-ethereum/cmd/utils"
26+
"github.com/ethereum/go-ethereum/core/types"
2627
"github.com/ethereum/go-ethereum/ethutil"
2728
"github.com/ethereum/go-ethereum/logger"
2829
)

‎cmd/mist/debugger.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424
"strings"
2525
"unicode"
2626

27-
"github.com/ethereum/go-ethereum/chain"
2827
"github.com/ethereum/go-ethereum/cmd/utils"
28+
"github.com/ethereum/go-ethereum/core"
2929
"github.com/ethereum/go-ethereum/ethutil"
3030
"github.com/ethereum/go-ethereum/state"
3131
"github.com/ethereum/go-ethereum/vm"
@@ -81,7 +81,7 @@ func (self *DebuggerWindow) SetData(data string) {
8181
func (self *DebuggerWindow) SetAsm(data []byte) {
8282
self.win.Root().Call("clearAsm")
8383

84-
dis := chain.Disassemble(data)
84+
dis := core.Disassemble(data)
8585
for _, str := range dis {
8686
self.win.Root().Call("setAsm", str)
8787
}

‎cmd/mist/ext_app.go‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ package main
2020
import (
2121
"encoding/json"
2222

23-
"github.com/ethereum/go-ethereum/chain"
24-
"github.com/ethereum/go-ethereum/chain/types"
23+
"github.com/ethereum/go-ethereum/core"
24+
"github.com/ethereum/go-ethereum/core/types"
2525
"github.com/ethereum/go-ethereum/event"
2626
"github.com/ethereum/go-ethereum/javascript"
2727
"github.com/ethereum/go-ethereum/state"
@@ -45,12 +45,12 @@ type AppContainer interface {
4545

4646
type ExtApplication struct {
4747
*xeth.JSXEth
48-
eth chain.EthManager
48+
eth core.EthManager
4949

5050
events event.Subscription
5151
watcherQuitChan chan bool
5252

53-
filters map[string]*chain.Filter
53+
filters map[string]*core.Filter
5454

5555
container AppContainer
5656
lib *UiLib
@@ -61,7 +61,7 @@ func NewExtApplication(container AppContainer, lib *UiLib) *ExtApplication {
6161
JSXEth: xeth.NewJSXEth(lib.eth),
6262
eth: lib.eth,
6363
watcherQuitChan: make(chan bool),
64-
filters: make(map[string]*chain.Filter),
64+
filters: make(map[string]*core.Filter),
6565
container: container,
6666
lib: lib,
6767
}
@@ -81,7 +81,7 @@ func (app *ExtApplication) run() {
8181

8282
// Subscribe to events
8383
mux := app.lib.eth.EventMux()
84-
app.events = mux.Subscribe(chain.NewBlockEvent{}, state.Messages(nil))
84+
app.events = mux.Subscribe(core.NewBlockEvent{}, state.Messages(nil))
8585

8686
// Call the main loop
8787
go app.mainLoop()
@@ -107,7 +107,7 @@ func (app *ExtApplication) stop() {
107107
func (app *ExtApplication) mainLoop() {
108108
for ev := range app.events.Chan() {
109109
switch ev := ev.(type) {
110-
case chain.NewBlockEvent:
110+
case core.NewBlockEvent:
111111
app.container.NewBlock(ev.Block)
112112

113113
case state.Messages:

‎cmd/mist/gui.go‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ import (
3131
"time"
3232

3333
"github.com/ethereum/go-ethereum"
34-
"github.com/ethereum/go-ethereum/chain"
35-
"github.com/ethereum/go-ethereum/chain/types"
34+
"github.com/ethereum/go-ethereum/core"
35+
"github.com/ethereum/go-ethereum/core/types"
3636
"github.com/ethereum/go-ethereum/ethdb"
3737
"github.com/ethereum/go-ethereum/ethutil"
3838
"github.com/ethereum/go-ethereum/logger"
@@ -413,9 +413,9 @@ func (gui *Gui) update() {
413413
events := gui.eth.EventMux().Subscribe(
414414
eth.ChainSyncEvent{},
415415
eth.PeerListEvent{},
416-
chain.NewBlockEvent{},
417-
chain.TxPreEvent{},
418-
chain.TxPostEvent{},
416+
core.NewBlockEvent{},
417+
core.TxPreEvent{},
418+
core.TxPostEvent{},
419419
)
420420

421421
// nameReg := gui.pipe.World().Config().Get("NameReg")
@@ -430,13 +430,13 @@ func (gui *Gui) update() {
430430
return
431431
}
432432
switch ev := ev.(type) {
433-
case chain.NewBlockEvent:
433+
case core.NewBlockEvent:
434434
gui.processBlock(ev.Block, false)
435435
if bytes.Compare(ev.Block.Coinbase, gui.address()) == 0 {
436436
gui.setWalletValue(gui.eth.BlockManager().CurrentState().GetAccount(gui.address()).Balance(), nil)
437437
}
438438

439-
case chain.TxPreEvent:
439+
case core.TxPreEvent:
440440
tx := ev.Tx
441441
object := state.GetAccount(gui.address())
442442

@@ -449,7 +449,7 @@ func (gui *Gui) update() {
449449
gui.setWalletValue(object.Balance(), unconfirmedFunds)
450450
gui.insertTransaction("pre", tx)
451451

452-
case chain.TxPostEvent:
452+
case core.TxPostEvent:
453453
tx := ev.Tx
454454
object := state.GetAccount(gui.address())
455455

‎cmd/mist/html_container.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ import (
2626
"os"
2727
"path"
2828
"path/filepath"
29-
"github.com/ethereum/go-ethereum/chain/types"
29+
30+
"github.com/ethereum/go-ethereum/core/types"
3031
"github.com/ethereum/go-ethereum/ethutil"
3132
"github.com/ethereum/go-ethereum/javascript"
3233
"github.com/ethereum/go-ethereum/state"

‎cmd/mist/qml_container.go‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ package main
2020
import (
2121
"fmt"
2222
"runtime"
23-
"github.com/ethereum/go-ethereum/chain/types"
23+
24+
"github.com/ethereum/go-ethereum/core/types"
2425
"github.com/ethereum/go-ethereum/ethutil"
2526
"github.com/ethereum/go-ethereum/state"
2627
"github.com/ethereum/go-ethereum/xeth"

‎cmd/mist/ui_lib.go‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ import (
2525
"strings"
2626

2727
"github.com/ethereum/go-ethereum"
28-
"github.com/ethereum/go-ethereum/chain"
29-
"github.com/ethereum/go-ethereum/chain/types"
28+
"github.com/ethereum/go-ethereum/core"
29+
"github.com/ethereum/go-ethereum/core/types"
3030
"github.com/ethereum/go-ethereum/crypto"
3131
"github.com/ethereum/go-ethereum/ethutil"
3232
"github.com/ethereum/go-ethereum/javascript"
@@ -231,7 +231,7 @@ func (self *UiLib) NewFilter(object map[string]interface{}) (id int) {
231231
}
232232

233233
func (self *UiLib) NewFilterString(typ string) (id int) {
234-
filter := chain.NewFilter(self.eth)
234+
filter := core.NewFilter(self.eth)
235235
filter.BlockCallback = func(block *types.Block) {
236236
if self.win != nil && self.win.Root() != nil {
237237
self.win.Root().Call("invokeFilterCallback", "{}", id)

‎cmd/utils/vm_env.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package utils
33
import (
44
"math/big"
55

6-
"github.com/ethereum/go-ethereum/chain"
7-
"github.com/ethereum/go-ethereum/chain/types"
6+
"github.com/ethereum/go-ethereum/core"
7+
"github.com/ethereum/go-ethereum/core/types"
88
"github.com/ethereum/go-ethereum/state"
99
"github.com/ethereum/go-ethereum/vm"
1010
)
@@ -48,10 +48,10 @@ func (self *VMEnv) Transfer(from, to vm.Account, amount *big.Int) error {
4848
return vm.Transfer(from, to, amount)
4949
}
5050

51-
func (self *VMEnv) vm(addr, data []byte, gas, price, value *big.Int) *chain.Execution {
51+
func (self *VMEnv) vm(addr, data []byte, gas, price, value *big.Int) *core.Execution {
5252
evm := vm.New(self, vm.DebugVmTy)
5353

54-
return chain.NewExecution(evm, addr, data, gas, price, value)
54+
return core.NewExecution(evm, addr, data, gas, price, value)
5555
}
5656

5757
func (self *VMEnv) Call(caller vm.ClosureRef, addr, data []byte, gas, price, value *big.Int) ([]byte, error) {
File renamed without changes.

0 commit comments

Comments
 (0)