()
| 152 | } |
| 153 | |
| 154 | func (rpcData *JSONRPCRequest) ToRPC2JSONBytesLine() (bytes []byte, err error) { |
| 155 | bytes, err = rpcData.ToRPC2JSONBytes() |
| 156 | if err == nil { |
| 157 | bytes = append(bytes, '\n') |
| 158 | } |
| 159 | return |
| 160 | } |
| 161 | |
| 162 | func (rpcData *JSONRPCRequest) ToJSONBytesLineWithVersion(version int) (bytes []byte, err error) { |
| 163 | if version == 2 { |
no test coverage detected