| 560 | }; |
| 561 | |
| 562 | struct CScriptWitness |
| 563 | { |
| 564 | // Note that this encodes the data elements being pushed, rather than |
| 565 | // encoding them as a CScript that pushes them. |
| 566 | std::vector<std::vector<unsigned char> > stack; |
| 567 | |
| 568 | // Some compilers complain without a default constructor |
| 569 | CScriptWitness() { } |
| 570 | |
| 571 | bool IsNull() const { return stack.empty(); } |
| 572 | |
| 573 | void SetNull() { stack.clear(); stack.shrink_to_fit(); } |
| 574 | |
| 575 | std::string ToString() const; |
| 576 | }; |
| 577 | |
| 578 | class CReserveScript |
| 579 | { |
no outgoing calls