aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub/pub.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethpub/pub.go')
-rw-r--r--ethpub/pub.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/ethpub/pub.go b/ethpub/pub.go
index 5d01a7a44..2650edf02 100644
--- a/ethpub/pub.go
+++ b/ethpub/pub.go
@@ -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(),