From f7ff01fd5431604f0aac8013c9c2a01cb06dc4a6 Mon Sep 17 00:00:00 2001 From: Roy Crihfield Date: Sat, 10 Jun 2023 01:51:11 +0800 Subject: [PATCH] fix plugin subscription method registration --- rpc/service.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpc/service.go b/rpc/service.go index cfdfba023..c71586a6f 100644 --- a/rpc/service.go +++ b/rpc/service.go @@ -63,6 +63,9 @@ func (r *serviceRegistry) registerName(name string, rcvr interface{}) error { return fmt.Errorf("no service name for type %s", rcvrVal.Type().String()) } callbacks := suitableCallbacks(rcvrVal) + // begin PluGeth code injection + pluginExtendedCallbacks(callbacks, rcvrVal) + // end PluGeth code injection if len(callbacks) == 0 { return fmt.Errorf("service %T doesn't have any suitable methods/subscriptions to expose", rcvr) }