@@ -59,6 +59,13 @@ plugins: # Each plugin section has a number of hooks available (preDeploy, post
5959 entrypoint : " ../../plugins/hello" # This entrypoint path is relative to the network.yaml file
6060 podName : " hello-pre-deploy"
6161 helloTo : " preDeploy!"
62+ circuitbreaker :
63+ entrypoint : " ../../plugins/circuitbreaker"
64+ url : " http://127.0.0.1:9235"
65+ apiUrl : " /api"
66+ mode : " fail" # Operating mode: fail, queue, or queue_peer_initiated
67+ maxPendingHtlcs : 10 # Default maximum pending HTLCs per peer
68+ rateLimit : 1 # Minimum seconds between HTLCs (token bucket rate limit)
6269 postDeploy :
6370 hello :
6471 entrypoint : " ../../plugins/hello"
@@ -67,21 +74,56 @@ plugins: # Each plugin section has a number of hooks available (preDeploy, post
6774 simln : # You can have multiple plugins per hook
6875 entrypoint : " ../../plugins/simln"
6976 activity : ' [{"source": "tank-0003-ln", "destination": "tank-0005-ln", "interval_secs": 1, "amount_msat": 2000}]'
77+ circuitbreaker :
78+ entrypoint : " ../../plugins/circuitbreaker"
79+ url : " http://127.0.0.1:9235"
80+ apiUrl : " /api"
81+ mode : " fail" # Operating mode: fail, queue, or queue_peer_initiated
82+ maxPendingHtlcs : 10 # Default maximum pending HTLCs per peer
83+ rateLimit : 1 # Minimum seconds between HTLCs (token bucket rate limit)
7084 preNode : # preNode plugins run before each node is deployed
7185 hello :
7286 entrypoint : " ../../plugins/hello"
7387 helloTo : " preNode!"
88+ circuitbreaker :
89+ entrypoint : " ../../plugins/circuitbreaker"
90+ url : " http://127.0.0.1:9235"
91+ apiUrl : " /api"
92+ mode : " fail" # Operating mode: fail, queue, or queue_peer_initiated
93+ maxPendingHtlcs : 10 # Default maximum pending HTLCs per peer
94+ rateLimit : 1 # Minimum seconds between HTLCs (token bucket rate limit)
7495 postNode :
7596 hello :
7697 entrypoint : " ../../plugins/hello"
7798 helloTo : " postNode!"
99+ circuitbreaker :
100+ entrypoint : " ../../plugins/circuitbreaker"
101+ url : " http://127.0.0.1:9235"
102+ apiUrl : " /api"
103+ mode : " fail" # Operating mode: fail, queue, or queue_peer_initiated
104+ maxPendingHtlcs : 10 # Default maximum pending HTLCs per peer
105+ rateLimit : 1 # Minimum seconds between HTLCs (token bucket rate limit)
78106 preNetwork :
79107 hello :
80108 entrypoint : " ../../plugins/hello"
81109 helloTo : " preNetwork!"
82110 podName : " hello-pre-network"
111+ circuitbreaker :
112+ entrypoint : " ../../plugins/circuitbreaker"
113+ url : " http://127.0.0.1:9235"
114+ apiUrl : " /api"
115+ mode : " fail" # Operating mode: fail, queue, or queue_peer_initiated
116+ maxPendingHtlcs : 10 # Default maximum pending HTLCs per peer
117+ rateLimit : 1 # Minimum seconds between HTLCs (token bucket rate limit)
83118 postNetwork :
84119 hello :
85120 entrypoint : " ../../plugins/hello"
86121 helloTo : " postNetwork!"
87122 podName : " hello-post-network"
123+ circuitbreaker :
124+ entrypoint : " ../../plugins/circuitbreaker"
125+ url : " http://127.0.0.1:9235"
126+ apiUrl : " /api"
127+ mode : " fail" # Operating mode: fail, queue, or queue_peer_initiated
128+ maxPendingHtlcs : 10 # Default maximum pending HTLCs per peer
129+ rateLimit : 1 # Minimum seconds between HTLCs (token bucket rate limit)
0 commit comments