Relative Pricing and Efficient Allocation in Blockchains