Skip to content

Commit

Permalink
increase max URL length
Browse files Browse the repository at this point in the history
  • Loading branch information
janmazak committed Jan 9, 2024
1 parent e086ad5 commit d1a346c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions doc/ins_sign_stake_pool_registration.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,12 @@ P2 = `0x36`
|relay format | 1 | `RELAY_SINGLE_HOST_NAME=0x01` |
|isPortGiven | 1 | `ITEM_INCLUDED_NO=0x01` or `ITEM_INCLUDED_YES=0x02` |
|port | 2 | Big endian; included if and only if isPortGiven is `ITEM_INCLUDED_YES`
|dns name | variable | byte buffer, max size 64
|dns name | variable | byte buffer, max size 128

|Field| Length | Comments|
|-----|--------|---------|
|relay format | 1 | `RELAY_MULTIPLE_HOST_NAME=0x02` |
|dns name | variable | byte buffer, max size 64
|dns name | variable | byte buffer, max size 128


---
Expand All @@ -175,7 +175,7 @@ P2 = `0x37`
|-----|--------|---------|
|includeMetadata | 1 | `ITEM_INCLUDED_NO=0x01` or `ITEM_INCLUDED_YES=0x02` |
|metadata hash | 32 | byte buffer; only if includeMetadata is `ITEM_INCLUDED_YES`
|metadata url | variable | byte buffer, max size 64; only if includeMetadata is `ITEM_INCLUDED_YES`
|metadata url | variable | byte buffer, max size 128; only if includeMetadata is `ITEM_INCLUDED_YES`


---
Expand Down
6 changes: 3 additions & 3 deletions src/cardano.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ typedef struct {

// ============================== CERTIFICATES ==============================

#define ANCHOR_URL_LENGTH_MAX 64
#define ANCHOR_URL_LENGTH_MAX 128

#define POOL_METADATA_URL_LENGTH_MAX 64
#define DNS_NAME_SIZE_MAX 64
#define POOL_METADATA_URL_LENGTH_MAX 128
#define DNS_NAME_SIZE_MAX 128

#define IPV4_SIZE 4
#define IPV6_SIZE 16
Expand Down

0 comments on commit d1a346c

Please sign in to comment.