UNPKG

chainode

Version:

A private blockchain network based on node.js

16 lines (13 loc) 262 B
'use strict'; /* Consumer topics by peer role */ // Return topic by role module.exports = (role, topics) => { switch(role) { case 'peer': return [topics.pending]; default: throw Error('Invalid peer role to select kafka topic.'); } };