Change checking for re-sububscriptions (#555)

This commit is contained in:
Jaco Greeff
2019-01-09 16:04:23 +01:00
committed by GitHub
parent de65a41bf0
commit c17036b028
+4 -3
View File
@@ -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;
}