| 243 | }; |
| 244 | |
| 245 | CScript CChainParams::GetDevfeeScript(int nHeight) const { |
| 246 | CScript script; |
| 247 | CBitcoinAddress address(vDevfeeAddress.c_str()); |
| 248 | CBitcoinAddress address2(vDevfeeAddress2.c_str()); |
| 249 | assert(address.IsValid()); |
| 250 | assert(address2.IsValid()); |
| 251 | |
| 252 | if (nHeight < nSwitchRX2Block) { |
| 253 | script = GetScriptForDestination(address.Get()); |
| 254 | } else { |
| 255 | script = GetScriptForDestination(address2.Get()); |
| 256 | } |
| 257 | |
| 258 | return script; |
| 259 | } |
| 260 | |
| 261 | static CMainParams mainParams; |
| 262 |
no test coverage detected