Change checking for re-sububscriptions (#555)
This commit is contained in:
@@ -331,9 +331,10 @@ export default class WsProvider implements WSProviderInterface {
|
||||
Object.keys(subscriptions).forEach(async (id) => {
|
||||
const { callback, method, params, type } = subscriptions[id];
|
||||
|
||||
// only re-create methods with '<section>_subscribe`, i.e. submissions such
|
||||
// as 'author_submitAndWatchExtrinsic' are not included
|
||||
if (method.indexOf('_subscribe') === -1) {
|
||||
// only re-create subscriptions which are not in author (only area where
|
||||
// transactions are created, i.e. submissions such as 'author_submitAndWatchExtrinsic'
|
||||
// are not included (and will not be re-broadcast)
|
||||
if (type.startsWith('author_')) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user