Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. pub enum RejectReason {
  2. /// malformed message
  3. MALFORMED = 0x01,
  4. /// invalid message
  5. INVALID = 0x10,
  6. /// obsolete message
  7. OBSOLETE = 0x11,
  8. /// duplicate message
  9. DUPLICATE = 0x12,
  10. /// nonstandard transaction
  11. NONSTANDARD = 0x40,
  12. /// an output is belw dust limit
  13. DUST = 0x41,
  14. /// insufficient fee
  15. FEE = 0x42,
  16. /// checkpoint
  17. CHECKPOINT = 0x43
  18. }
  19.  
  20. fn main() {
  21. let a = RejectReason::CHECKPOINT;
  22. dbg!(a as u8);
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement